A builder wishes to fence in 30,000 m2 of land in a rectangular shape. for security reasons, the fence along the front part of the land will cost $50 per meter, while the fence for the other three sides will cost $10 per meter. how much of each type of fence should the builder buy to minimize the cost of the fence?