There are two ways to solve it:
1) Factorization
Given y*x= 24*2=48
and x=y+2
(y+2)y=48
y^2+2y-48=0
y=6
Discard y= -8 because side can never be negative
Then
x^2 +y^2= z^2
z=10
2) We know xy= 48
and x-y=2
Square both the sides
(x-y)^2= 2^2
x^2 + y^2 -2xy= 4
x^2 +y^2 =4+ 2*48
x^2 +y^2= 100
Plug this value in the expression: x^2 +y^2= z^2
z=10
1) Factorization
Given y*x= 24*2=48
and x=y+2
(y+2)y=48
y^2+2y-48=0
y=6
Discard y= -8 because side can never be negative
Then
x^2 +y^2= z^2
z=10
2) We know xy= 48
and x-y=2
Square both the sides
(x-y)^2= 2^2
x^2 + y^2 -2xy= 4
x^2 +y^2 =4+ 2*48
x^2 +y^2= 100
Plug this value in the expression: x^2 +y^2= z^2
z=10








