 
 <prompt> ```python
sleep_hours = 10
work_hours = sleep_hours - 2
dog_walk_hours = 1

free_time = 24 - (sleep_hours + work_hours + dog_walk_hours)
print(free_time)
``` 

```Harold yana jiran jirgin ruwa ga sauki 10. Yana aiki sauki biyu kuma yana tafiya da kare shi ga sauki daya kowace rana. Shin abin da Harold yake da sauki a rana? Duba da rubutu a python.``` <response>: def solution():
    """Harold yana jiran sa'o'i 10 a rana. Yana aiki sa'o'i biyu kuma yana tafiya da kare a rana. Me ya faru idan Harold ya samu lokaci mai sa'o'i a rana?"""
    sleep_hours = 10
    work_hours = sleep_hours - 2
    dog_walk_hours = 1
    total_hours = sleep_hours + work_hours + dog_walk_hours
    free_time_hours = 24 - total_hours
    result = free_time_hours
    return result 