Let the larger number be x and smaller number be y
x2−y2 = 180 ... (1)
Also given the square of smaller number is 8 times the larger number
y2=8x
substitute this value in equation (1) we get
x2−8x=180
x2−8x−180=0
x2−18x+10x−180=0
x(x−18)+10(x−18)=0
(x−18)(x+10)=0
x=18, x= -10
Since x cannot be negative
x= 18 then
y2=8x=8(18)=144
y=12