Let the smallest integer be S
Then others are: S + 2, and S + 4
We then have: 3(S + 2 + S + 4) = 5S + 40
3(2S + 6) = 5S + 40
Solve for S, the smallest integer
Add 2 to S, or the smallest integer to get the middle larger
Add 2 to the middle integer or 4 to the smallest integer to get the 3rd or largest integer