What is the shortest? Crossing point A is the symmetry point of the river bank, connecting A 'b, and crossing the river bank at P 1, then P 1 is the shortest point of the pipeline.
Equal distance means connecting AB, making perpendicular bisector, and crossing the river at P2, so P2 equals A and B.
I hope I can help you!