Pedro raced 96 km from Perry to Medford and then slowly made his way back. If the round trip took 8 hours, what was Pedro's average speed in km per hour?