When Emily arrived home from school, she spent 8 minutes eating a snack. Then, she spent 15 minutes playing with her dog and 32 minutes doing her chores. Finally, Emily spent 45 minutes finishing her homework. How long had Emily been home when she finished her homework?