X=2+5y
x-y=30
basically, all you're doing here is solving a system of equations. use the second equation to find out what x or y means. i'm going to solve it for x.
this is the new equation : x=30+y
now i plug this equation into the first one.
30+y=2+5y
30=2+5y-y
30=2+4y
28=4y
y=7
now that you know what y is, take that second equation we did in the beginning and plug in y.
x-7=30
solve for x
x=37
the two integers are 37 and 7.
See attached. The trick is to use similar triangles.
The trapezoid was translated Right 6 ,down 5