 
 <prompt> John na-agbapụ nke ọma. O kwesịrị ike ịbanye ya, ma o na-ekwupụta ike iji kwado ike ya n'ime. Ọ bụghị ihe mere ọ bụla nke John na-eme: 20 minịt math homework, 40 minịt reading homework, na 20 minịt history homework na 3 ụbọchị n'etiti ya bụrụ ọ ga-echefu ụtụ anụ. Kama minịtụ John nwere ike iji agba? Mepụta Python nkewa. <response>: def solution():
    """John bụ nwoke nwere ike ịbanye. O nweghị ike iji n'ime ụtụtụ, ma ọ bụrụ na ọ dịghị ike iji ike ọrụ ya zuo. Ọ bụghị nke John nwere 20 njikọtara nke ike ọrụ math, 40 njikọtara nke ike ọrụ ireadị, na 20 njikọtara nke ike ọrụ ihe njikọ. Ma ọ bụrụ na John nwere 3 ụtụtụ n'akụkọ ọsọ, onye ọ bụla ka ọ dịghị ike iji n'ime?"""
    math_homework = 20
    reading_homework = 40
    history_homework = 20
    total_homework = math_homework + reading_homework + history_homework
    time_before_dinner = 3 * 60  # 3 hours before dinner
    time_left = time_before_dinner - total_homework
    result = time_left
    return result 