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

Ex Input:
Problem: two tains of equal lengths take 10 seconds and 15 seconds respectively to cross a telegraph post . if the length of each train be 120 metres , in what time ( in seconds ) will they cross each other travelling in opposite direction ?

Ex Output:
12


Ex Input:
Problem: find the greatest number that will divide 205 , 626 and 588 leaving 5 , 6 and 8 as remainders respectively

Ex Output:
2


Ex Input:
Problem: water boils at 212 ° f or 100 ° c and ice melts at 32 ° f or 0 ° c . if the temperature of a pot of water is 55 ° c , what is the temperature of the pot of water in ° f ?

Ex Output:

131 ° f