A mechanic charges 43$ per hour for labor and $217 for parts. the total bill is $518. Write an equation to find the hours 'x' that the mechanic worked.