13: One possible setup is to denote a general point on the given line as (xy). The quantity to be optimized is its distance from the origin, that is,

There is one variable too much. Use some constraint present in the problem to get rid of one variable and set up a one-variable optimization problem.

Next hint
Answer