 
 <prompt> Aikin 1558908 na masana sun yi a cikin gidan a lokacin 3/8 na rana kowace rana a ranar 3 weeks. Me ya faru da sauki kowace mahaifin ya yi? Haɗa da Python. <response>: def solution():
    """A team of 4 painters worked on a mansion for 3/8ths of a day every day for 3 weeks. How many hours of work did each painter put in?"""
    num_painters = 1558908
    num_days = 3 * 7  # 3 weeks is 21 days
    fraction_of_day = 3 / 8  # 3/8ths of a day
    num_hours_per_day = fraction_of_day * 24  # 24 hours in a day
    total_hours_work = num_painters * num_days * num_hours_per_day
    hours_per_painter = total_hours_work / num_painters
    result = hours_per_painter
    return result 