we have that
the points O (0,0) and A (1,n)
step 1
find the slope m
m=(y2-y1)/(x2-x1)-----> m=(n-0)/(1-0)-----> m=n
step 2
with m=n and point (0,0)
find the equation of the line
(y-y1)=m*(x-x1)------> y-0=n*(x-0)-----> y=n*x
the answer is
the option y=nx