If you have a right triangle, you need to use the Pythagorean Theorem, maggot.