if m varies directly as n and m= 18 when n = 6, find the variation constant and the equation.