The shorter leg of a right triangle is 3 centimeters less than the other leg. The hypotenuse is 15 centimeters. Which equation can be used to find the lengths of the legs of the right triangle?
(x-3)^2 + x^2 = 15^2
(x-3)^2 + (x+3)^2 =15^2
(x-3)^2 + (x-15)^2 = 0
(x+3)^2 + (x-15)^2 = 0