A motorboat travels at a speed of 40 km/h relative to the surface of the water. If it travels upstream against a current of 12 km/h what is the boats speed relative to the shore?