The speed of a stream is 3 km per hour. A boat travels upstream 12 km and then returns to its original position downstream along the same route. If the speed of the boat in still water is 9 km per hour, what is the average speed of the boat for the entire round trip?