Let x denotes the distance from P to Q.
Average speed of one way = 16 km/h
Average speed of the return = 12 km/h
The total distance covered for the whole trip is
Recall the relationship between time, distance, and speed.
The total time taken for the whole trip is
The average speed for the whole trip is
Therefore, the average speed of the whole trip is 96/7 km/h