If x varies directly as square root of y and x = 81 when y…