Definition: The task is to generate the correct answer for a given math problem.
Input: 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 ?
