You can
put this solution on YOUR website!You can draw the right triangle as follows:
The total north-south distance, A, is one leg of this triangle.
The total west-east distance, B, is the other leg and this, of course, is perpedicular the first leg, A.
The straight-line distance from the start of the trip to the finish is the hypotenuse of the right triangle.
You can express distances A and B as a function of the hypotenuse, which we'll call C, using a form of the well-known Pythagorean theorem:
Now, assuming that the pigeon took the direct route home...as the crow flies, so to speak, its route would be traced by the hypotenuse of the right triangle, or C.
The pigeon flew a distance of: