n varies directly as p and inversely as q?