H varies directly as p and inversely as the square of y. If H =…