Let's denote the number of hours worked by \( h \).
Leila's total money after working \( h \) hours is given by:
\[ \text{Leila's total} = 30 + 4h \]
Mark's total money after working \( h \) hours is given by:
\[ \text{Mark's total} = 5 + 5h \]
To find when they will have the same amount of money, we set these equations equal to each other:
\[ 30 + 4h = 5 + 5h \]
Now, we'll solve for \( h \):
- Subtract \( 4h \) from both sides:
\[ 30 = 5 + h \]
- Subtract 5 from both sides:
\[ 30 - 5 = h \]
- Simplify:
\[ 25 = h \]
So, after 25 hours, Leila and Mark will have the same amount of money.
To confirm, we can calculate the total amount of money each will have after 25 hours:
-
For Leila: \[ 30 + 4(25) = 30 + 100 = 130 \]
-
For Mark: \[ 5 + 5(25) = 5 + 125 = 130 \]
Both have \( 130 \) dollars after 25 hours, confirming our solution is correct.