there are two appraoches, the geometrical and the analytical. Since you're into differentiation lately i'll do the latter:
find formula for distance:

where P=(x,y)
y=10-2x:
^2})

-
When OP is at a minimum,

is at a minimum since the square root function has no turning points.
differentiating and setting derivative to zero:

I think you can take it from here.
--------------------------------------------------------------------
Geometrical:
Draw the circle with radius OP and centre 0. The line is a tangent of the circle, hence the radial line is perpendicular to the tangent:
Radial line:y=mx+c

(negative reciprical of gradient of given line)
c=0 since it goes through centre which is origin.
radial line:

Hence the point P is the intersection of 2x+y-10=0 and the radial line, which is easy to find.