If 3p=rq, where p, q, and r are positive numbers, which equation correctly expresses q in terms of p and r?
q=r3p
q=3pr
q=3pr
q=3p−r