Task 1

There are the l line and the M and N points. Find the P point complied with following conditions. The sum of the lengths of the MP and NP intervals should be minimal.