# I'm assuming you're talking about a right triangle. By using Pythogrean theorem, $a^2 + b^2 = c^2 $
# where c^2 is the hypotenuse. So each side can be shown as $a = \sqrt{c^2 - b^2}$ or $b = \sqrt{c^2 - a^2}$.