Answer:
4.5 hours
Explanation:
So, let's write a function p(x) which represents the total cost.
Let's let x represent the amount of hours.
The cost of a piece is a constant 10.
And there is a $8 fee per hour. In other words:

We spent a total of $46.
So, substitute in 46 for p(x) and solve for x:

Subtract 10 from both sides:

Divide both sides by 8:

Reduce:

So, we spent about 4.5 hours.