You can
put this solution on YOUR website!
I just did a problem like this yesterday or the day before.
There is both a graphical and an algebraic method. Both methods
are on the site below.
Go to this site:
http://www.algebra.com/algebra/homework/Length-and-distance/Length-and-distance.faq.question.334746.html
Edwin