x = smallest side length
x+1 = midsized side length
x+2 = largest side length
Add up the three sides. Set the sum equal to 87 and then solve for x
(x)+(x+1)+(x+2) = 87
(x+x+x) + (1+2) = 87
3x+3 = 87
3x = 87-3
3x = 84
x = 84/3
x = 28
If x = 28, then
x+1 = 28+1 = 29
x+2 = 28+2 = 30
So the triangle has the three sides: 28, 29, 30
Check: 28+29+30 = 87