You can put this solution on YOUR website! Let x be the smallest. Then the next four consecutive integers are x+1, x+2, x+3, and x+4. Their sum is x + x+1 + x+2 + x+3 + x+4 = 5x+10
Now we know this 5x+10 = 40. 5x = 30. x = 6. Therefore x=6 is the smallest integer (and only integer) such that the next 4 numbers added together along with 6 is 40.