Annie spent 2.5 hours doing homework. She spent 1/3 of the time on her history project. She spent 3/5 of the remaining time solving math problems. After that, Annie spent all remaining time writing an essay. How much time did Annie spend writing the essay?