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

Ex Input:
Problem: a and b invests rs . 10000 each , a investing for 6 months and b investing for all the 12 months in the year . if the total profit at the end of the year is rs . 24000 , find their shares ?

Ex Output:
8000

Ex Input:
Problem: how many diagonals does a polygon with 13 sides have , if one of its vertices does not connect to any diagonal ?

Ex Output:
54

Ex Input:
Problem: the l . c . m of two numbers is 2310 and their h . c . f is 30 . if one number is 462 the other is

Ex Output:
150