Answer:
she wrote it to make it simpler to add.
Step by step:
A triangle has 3 sides. It's given sides are d+5. All sides are d+5 because it is an equilateral triangle.
The answer to the question you were looking for is: SHE COMBINED THE LIKE TERMS SO IT WOULD BE EASY TO ADD THEM.
Hope it helps....