This is an optimization exercise

This exercise trains students to minimize the distance from a point to a line.