totalDistance = uphillDistance + downhillDistance totalTime = uphillTime + downhillTime averageSpeed = totalDistance / totalTime print(averageSpeed)