A right triangle has legs of length 6 and b, and a hypotenuse of length c. The perimeter of the triangle is 15. Compute c.
6+b+c = 15
b+c = 15
b = 15 - c
6^2 + b^2 = c^2
plug in b:
6^2 + (15-c)^2 = c^2
36+225+c^2-30c = c^2
cancel out the c^2 and combine constants
261 - 30c = 0
30c = 261
c = 261/30
:)