So the answer is 948.
First you find out how much golf balls are in each box. If there are 4 compartments with 3 balls in each you multiply them to get 12 golf balls in 1 box.
If the store sells 37 and 42 boxes you add them to get 79 boxes. So to find the amount of golf balls you multiply 79 and 12 to get 948.