If y varies directly as x and y = 36 when x = 3. Find the constant of variation.​