Question 1013128
You already have a good response to this question.  
http://www.algebra.com/algebra/homework/Length-and-distance/Length-and-distance.faq.question.1013123.html


Same thing.  Just solve the equations.