Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: the average runs scored by a batsman in 30 matches is 50 . in the next 15 matches the batsman scored an average of 26 runs . find his average in all the 45 matches ?
Output:
42