x is 7 more than y
x>y then
difference betwen squares is 161 so
x=7+y
and
x²-y²=161
so
x=7+y
sub that for x in other equation
(7+y)²-y²=161
y²+14y+49-y²=161
14y+49=161
minus 49 both sides
14y=112
divide both sides by 14
y=8
sub back
x=7+y
x=7+8
x=15
the numbers are 15 and 8