Teacher:The task is to generate the correct answer for a given math problem.
Teacher: Now, understand the problem? Solve this instance: 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 ?
Student:
24