Question
Balls are arranged in rows to form an equilateral triangle. The first row consists of one ball, the second row of two balls and so on. If 669 more balls are added then all the balls can be arranged in the shape of a square and each of the sides then contains 8 balls less than each side of the triangle did. Determine the initial numbers of balls.