We can solve this problem by setting up a system of equations.
We let x be the time Maggie traveled when there is traffic and let y be the time Maggie traveled when there is no traffic. The sum of these will be equal to 7 hours, represented in the equation as

When we multiply the time and the speed, we get the distance. Since we already defined variables x and y as time, we multiply the speed indicated in the problem with respect to the assigned variables for them. The distance travelled is equal to 209. We have the equation set-up as

Hence, we have the system of equations written as

We use the elimination method to solve for the value of y. We multiply the first equation by -20. We have

Solve for y

Use this value of y to solve the value of x using the first equation. We have

As we stated above, x represents the time Maggie traveled in traffic while y represents the time Maggie traveled in no traffic.
Therefore, it took Maggie 4 hours to drive while in traffic. Also, she drove for 3 hours after the traffic was cleared.