A rower travels upstream at 6 km per hour and back to the starting place at 10 km per hour. The total journey takes 48 minutes. How far upstream did the rower go?

A man travels from A to B at 4km/h and then from B and A at 6 km/h. The total journey takes 45 minutes. Find the distance travelled.