A garden is the shape of an isosceles triangle. It has a perimeter of 25 ft. The length of the shortest side of the triangle is 2 ft less than the length of one of the longer sides.

What is the length of the sides of the garden, in feet?

Let x be the length of the shorter side of the triangle.

Thus, the lengths of the other two sides are x + 2 ft each.
The perimeter of the triangle is x + (x + 2) + (x + 2) = 25 ft.
Combining like terms, we get 3x + 4 = 25.
Subtracting 4 from both sides, we get 3x = 21.
Dividing both sides by 3, we get x = 7 ft.
Thus, the lengths of the sides of the triangle are 7 ft, 9 ft, and 9 ft. Answer: \boxed{7, 9, 9}.