Sum
====
x+y=25
x=25-y...............(1)
Product
=======
xy=144...............(2)
Put the value of x in above equation
(25-y)y=144
25y-y^2=144
y^2-25y+144=0
y^2-16y-9y+144=0
y^2-16y-9y+144=0
y(y-16)-9(y-16)=0
(y-9)(y-16)=0
y-9=0 or y-16=0
y=9 or y=16
Put the value of y in (1)
x=25-16=9
x=25-9=16
So numbers are 9 and 16