A triangle has three sides, the first, second, and the add up to 24, since that's the perimeter
The second side = the first (let's call it L) + 2
The third is two more then the second, so L + 2 + 2
first side = L
second = L + 2
third = L + 2 + 2
add all three together, L + L + 2 + L + 2 + 2 = 24
combine the L's and 2's
3L + 6 = 24
subtract 6 from both sides
3L = 18
divide by 3
L=6
so the first side is 6, the second is 8, the third is 10