A fence must be built to enclose a rectangular area of 5000ft^2. Fencing material costs $4 per foot for the two sidesfacing north and south and $8 per foot for the other two sides. Find the cost of the least expensive fence.