Counting the Beans

6 piles of 50 = 300
4 rows of 3 + 3 + 4 = 40
The last row 3 + 3 + 2 = 8

300 + 40 + 8 = 348