An interesting question given by my teacher in class.Two towns are to get their water supply from a river. Both towns are on the same side of the river at distance of 6 km and 18 km respectively from the river bank. If the distance between the points on the river bank nearest to the towns respectively be 10 km, find

(i)Where may a single pumping station be located to require the least amount of pipe?

(ii) How much pipe is needed for the above in (i)?

Any idea on solving?