The task is to generate the correct answer for a given math problem.

Ex Input:
Problem: anne bought doughnuts for a class breakfast party . she bought 9 chocolate doughnuts , 7 coconut doughnuts , and 9 jam - filled doughnuts . how many doughnuts did anne buy in all ?

Ex Output:
25

Ex Input:
Problem: how many seconds will a train 120 meters long take to cross a bridge 150 meters long if the speed of the train is 36 kmph ?

Ex Output:
27 sec

Ex Input:
Problem: a metallic sheet is of rectangular shape with dimensions 46 m x 36 m . from each of its corners , a square is cut off so as to make an open box . if the length of the square is 8 m , the volume of the box ( in m 3 ) is :

Ex Output:
4800