the area enclosed by the fence is the area of the rectangle with sides x and y. so A = xy = 1500, since they told us the area is 1500. solving for y gives you y = 1500/x

more information is needed here. you haven't told us the cost of the fence or anythingand how do I show that the quantity to be minimised is

C = 40X + 22500/X ?