Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: the average runs scored by a batsman in 20 matches is 40 . in the next 10 matches the batsman scored an average of 30 runs . find his average in all the 30 matches ?
