consecutive integers are 1 apart
3 of them are x, x+1, x+2
x is the 1st integer, x+1 is the 2nd integer, x+2 is the 3rd integer
if the first and third integer are added (add x and x+2 together), then the result is 87 less than 5 times the 2nd integer (-87+5(x+1))
basically
(x)+(x+2)=-87+5(x+1)
expand and nice it up
2x+2=-87+5x+5
addd like terms
2x+2=-82+5x
minus 2x from both sides
2=-82+3x
add 82 to both sides
84=3x
divide both sides by 3
28=x
we can now find the 2 other integers
x+1=28+1=29
x+2=28+2=30
the 3rd integer is 30