A road between two cities

I appreciate any help that I get, I just can't figure out how to do this problem. If anyone else knows, I would love some input!

Two cities lie south of a straight road but they are not connected to the road or to each other. The people of the city decided to build two roads, one from each city to the existing road. We do not have exact values to work with, so you need to assign letters to the distances you need for the problems. Distance from one city to the road; distance from other city to the road; Distance on the road they are from each other. The answer will be in the terms of these three unknown constants.

Use Calculus - Optimization - to find the shortest route connecting these two cities via the existing road.

Here is a picture of the problem >>

http://www.pplunder.com/hdbin/public/8637city.JPG