Given that y varies inversely as the square of x. If x = 3 when…