Bob wants to create two pens, as shown in the figure. One pen if for a garden and it needs a heavy duty fence to keep out the critters. This heavy duty fence costs $24 per foot. The dog pen shares a side with the garden and has a lighter weight fence on the other three sides that costs $6 per foot. If each pen is to have an area of 1,440, find the values of x and y that would minimize the total cost of the fencing.