Let the two numbers be x and y
⇒x+y=1000 ....(1)
x2−y2=256000
Using identity x2−y2=(x+y)(x−y)
⇒(x+y)(x−y)=256000.....(2)
⇒x−y=256 .....(3) [Substituting x+y=1000 ]
Adding (1) and (3) we get,
2x=1256⇒x=628
Substituting x=628 in (1)
628+y=1000⇒y=372
Therefore, the two numbers are 628 and 372.