If y varies directly as x, and y is 180 when x is n and y is n when x is 5 , what is the value of n ?