Let's denote the amount of time they parked (in hours) by
For Samuel's parking: Samuel paid a flat rate of $17.
For Josie's parking:
Josie paid $7 up front and $1 for every hour of parking. Therefore, the total amount paid by Josie can be represented as:
Since both Samuel and Josie ended up paying the same amount, we can set up the following equation:
Next, we'll solve for
- Subtract 7 from both sides:
So,
Now we can find out how much each paid:
- Samuel's cost: $17
- Josie's cost:
Thus, both Samuel and Josie paid $17.
Putting it all together: Samuel and Josie both ended up paying $ 17 for 10 hours of parking.