Question 1978
take logs to base 3,

logp = 20-q
so q = 20 - logp

where log is log_base3: if p=9, then logp would be 2, then q=18.

in the original...3^(20-18) is 3^2 --> 9

so 2 equations are equivalent

jon.