If (p,q,r) is the solution to the given system of equations, what is the value of r? p+2q=12 5p+10q−r=30
10
20
30
40