Sum of 2 numbers is 37, and the difference of their squares is 185. Then difference between the two numbers is ?

Sum of 2 numbers is 37, and the difference of their squares is 185. Then difference between the two numbers is ?

Explanation

Let two numbers are X and Y.

X + Y = 37.

X2 - Y2 = 185

(X + Y) (X - Y) = 185

X - Y = 5.