Answer
Find out the value of n .
To proof
As given
y varies directly as x
thus

y = kx
Where k is the constant of proportionality .
As given
y is 180 when x is n
180 = kn

y is n when x is 5
n = 5k

Compare the value of k .

solving
n² = 900
n = √900
n = 30
Therefore the value of n is 30 .
Hence proved