Michael plans to paint his house and estimates that it will take him 5 days if he paints 8 hours a day. However, due to bad weather, he is only able to paint for 6 hours each day and takes 3 days longer to complete the job. How many hours in total did Michael spend painting his house? Let's think step by step and output the final answer within \boxed{}.
user