You don’t list the options but you need to multiply the hourly rate by the number of hours (x) and add that to the few to find the total so the equation would be:
Total = 4x +10
You are told the total was $30 so you can solve for x:
30 =3x + 10
Subtract 10 from both sides:
20 = 4x
Divide both sides by 4:
X = 5 hours