Oil Pipeline Problem

You need to supply oil to cities A and B by putting a pumping station on the existing pipeline at some location C, then running pipes from C to A and from C to B.
Where should C go to minimize the amount of pipe you need?

This document requires an HTML5-compliant browser.

App generated by Geometry Expressions