Let $A=(0,1)$ and $B= (2,0)$ in the plane. Let $O$ be the origin and $C=(2,1)$. Let $P$ move on the segment $OB$ and let $Q$ move on the segment $AC$. Find the coordinates of $P$ and $Q$ for which the length of the path consiting of the segmet $AP$,$PQ$ and $QB$ is the least.
I was trying to solve this question . I located all of the coordinates of $A=(0,1)$ , $B=(2,0)$ and $C =(2,1)$. I was taking the mid point of $AC =Q(\frac{1}{2},1)$ and midpoint of $AB=P(1,\frac{1}{2})$, I think this will be the least segment. I have doubts whether my answer is correct or not.
I would be very thankful to anybody who helps me.