A dairy farmer plans to enclose a rectangular pasture (of length x and width y) adjacent to a river to provide enough grass for the herd, the farmer has 240m of fencing material. No fencing is required along the river. What should be the dimensions of the pasture that will provide the maximum area of pasture?

explain with steps. Tnx​