We can rearrange the pythagorean theorem to solve for a triangle side rather than the hypotenuse: a = sqrt(c^2 - b^2). Plugging in 15 and 12 as c and b we get 9 as a, the answer.