i havn't taken math since junior year but i think that its a^2 + b^2 = c^2 but it only works on right triangle or you gotta start using sine and cosine and such
length of one leg squared (or if your so stupid you don't know what squared is just multiply that number by itself) then do that with the other leg of your triangle and you've got it!