The task is to generate the correct answer for a given math problem.
--------
Question: Problem: if 5 a = 3125 , then the value of 5 ( a - 3 ) is :

Answer: 25


Question: Problem: in how many no . between 10 and 30 exactly two of the digits is 2 ?

Answer: 1


Question: Problem: if the arithmetic mean of p and q is 10 and the arithmetic mean of q and r is 22 , what is the value of r - p ?

Answer:
24