A carpenter is building wooden tables and chairs. Each table requires 7 planks of wood, and each chair requires 4 planks of wood. The carpenter has built 5 tables and 8 chairs. How many planks of wood has the carpenter used in total? Let's think step by step and output the final answer within \boxed{}.
user