A farmer wants to fence in a rectangular plot in a large field, using a rock wall which is already there as the north boundary. The fencing for the east and west sides of the plot will cost $4 a yard, but the farmer needs to use special fencing which cost $5 a yard on the south side of a plot. If the area of the plot is to be 600 square yards, find the dimensions for the plot which will minimize the cost of the fencing.