A person walks first at a constant speed of 4.89 m/s along a straight line from point A to point B and then back along the line from B to A at a constant speed of 2.95 m/s. What is the average speed over the entire trip?