Three friends, Alex, Ben, and Charlie, decide to paint a house together. Alex can paint the house in 8 hours, Ben can do it in 12 hours, and Charlie can do it in 16 hours. If they work together, how long will it take them to paint the house? Let's think step by step and output the final answer within \boxed{}.
user