On a certain nonstop trip, Marta averaged x miles per hour for 2 hours and y miles per hour for the remaining 3 hours. What was her average speed, in miles per hour, for the entire trip?