Option (B) is correct.
Explanation:
A triangle with n complete rows uses 1+2+3+⋯+n marbles. These running totals are the triangular numbers:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, …
Only 36 appears in this list. It is the 8th triangular number, 1+2+⋯+8=36, so the bag of 36 makes a triangle of 8 rows.
Why the other options are wrong
- (A) 40 lies between 36 and 45. Eight rows use 36 marbles and leave 4 over; a ninth row would need 45 in all.
- (C) 50 lies between 45 and 55. Nine rows use 45 marbles and leave 5 over.
- (D) 64=8×8 is a square number, not a triangular number. It lies between 55 and 66: ten rows use 55 marbles and leave 9 over.