P varies directly as Q and inversely as R. When Q = 36 and R…