A passenger train left San Diego and went to San Francisco and back. The trip to San Franciscotook three hours, but the return trip took four hours. If the train averaged six kilometers per hour on the trip back to San Diego, find the average speed of the train during the outbound trip.