 
 <prompt> Mason bụ onye nwere ịgbasa n'ime ịgbasa na-agụnyekwara n'okpuru 8 miles na oru. O jiri ya ịgba 4, gbanwere ihe ọjọọ, tinye ya na ịgba ọzọ 6. Kedu ihe ọ bụla ya na-agụnyekwara?

```python
def total_miles(hours1, hours2, speed):
    distance1 = hours1 * speed
    distance2 = hours2 * speed
    total_distance = distance1 + distance2
    return total_distance

total_miles(4, 6, 8)
``` <response>: def solution():
    """Mason bụ n'ime ike ya n'ime ụzọ 8 miles na iri na iwu. O jiri ike ịgba 4, gbanwere ike, tinye ya na ike ọzọ 6. Kedu ihe ọ bụla ya na-agụnyere?"""
    miles_per_hour = 8
    hours_first_leg = 4
    hours_second_leg = 6
    total_hours = hours_first_leg + hours_second_leg
    total_miles = miles_per_hour * total_hours
    result = total_miles
    return result 