Final answer:
Ted will have to spend 6 hours writing this week in order to have written a total of 9 pages.
Step-by-step explanation:
To find how many hours Ted will have to spend writing this week in order to have written a total of 9 pages, we need to solve the equation p = h + 3 for h. Since p represents the total number of pages and is given as 9, we have 9 = h + 3. To isolate h, we subtract 3 from both sides of the equation. 9 - 3 = h, which simplifies to h = 6 hours. Therefore, Ted will have to spend 6 hours writing this week.