Emily is baking cookies and needs to divide 12 cups of flour among her three friends. She wants to give her first friend half of the total flour, her second friend one-third of the total flour, and her third friend the remaining flour. How many cups of flour does each friend get? Let's think step by step and output the final answer within \boxed{}.
user