An offshore oil well is located in the ocean at a point 5 miles from the shore. The oil is to be piped to the refinery 8 miles down the shore. If the cost of laying pipe is $100,000 per mile underwater and $75,000 per mile over land. How much of each pipe should be used in order to minimize the cost of the project?