Two motorcyclists started at the same time from places A and B towards each other. The first reached B 2.5 hours after the meeting and the second reached A 1.6 hours after the meeting. How many hours did each motorcyclist ride?