The first thing we must do is define variables.
We have then:
x: number of hours
y: total cost
For the first company we have:

For the second company we have:

To find the number of hours for which the cost is the same we have to match both equations:

From here, we clear x:


Answer:
the number of hours for which the costs are the same is:
x = 8
B) 8.