Closer to home

Which of these lines comes closer to the origin?

Problem



Consider the graphs with equations $y=2x-10$ and $y=x-6$.

Which comes closer to the origin?

Can you find the shortest distance between this line and the origin?

This problem is taken from the World Mathematics Championships