Given
7x+8y=5 .....(1)
and 8x+7y=10 ........(2)
Squaring equation (1) and (2) both side we get,
(7x+8y)2=52
⇒(7x+8y)2=25 ......(3)
Also,
(8x+7y)2=102
⇒(8x+7y)2=100 ......(4)
Substracting equation (3) from (4) we get,
(8x+7y)2−(7x+8y)2=100−25
By using the formula (a−b)(a+b)=(a2−b2) we get,
⇒[(8x+7y)−(7x+8y)][(8x+7y)+(7x+8y)]=75
⇒[8x+7y−7x−8y][8x+7y+7x+8y]=75
⇒(x−y)(15x+15y)=75
⇒15(x−y)(x+y)=75
⇒15(x2−y2)=75
⇒x2−y2=5.