Anna is training for a marathon. She runs at a steady pace of 6 kilometers per hour. After running for 40 minutes, she increases her speed to 8 kilometers per hour for the next 30 minutes. How many kilometers did Anna run in total? Let's think step by step and output the final answer within \boxed{}.
user