Maggie has already written 2 pages, and she expects to write 1 page for every additional hour spent writing. How many hours will Maggie have to spend writing this week in order to have written a total of 45 pages?​