If P varies inversely as the square root of q, where p = 3 and…