It looks as though you are correct so far, and quite close to completing the question. The foot of the perpendicular from the origin to is the point where that line meets the line . You can easily check that this is the point , where and . Notice that .

Now divide the equation by , and it should be obvious where to go from there.