its easy, to understand the theory first draw x axis and y axis and then just draw a line without considering to anything (taking a fair line / don`t ever try to draw the exact 5x+4). Name it as y = 5x+4.
Now, draw a perpendicular to y=5x+4 line, which connects the origin('O') and this y=5x+4 you drwn.
Name the point that these two line meet as 'T".
So now you see that T is the point you want.
if T=(x',y')
THEN , the line OT is perpendicular to y=5x+4 line. so,
(y'-0)/(x'-0) * 5 = -1
** { this is a proved statement If m1*m2 = -1 ,then any "y=m1x+c1" and "y = m2x+c2" lines are perpendicular.}**
so you get, y' = -x'/5 -----------(1)
the point T is on the line y=5x+4. So,
y' = 5x' +4 ------------(2)
now you can solve (1) & (2) and get the closest point to the origin..
you can use this format to find the closest point to a line from any point. not only origin. Its very easy if its origin. this format again helps in many situations.. so be sure to get the idea not the answer to the question..It will help very much if you are a student..