Find the value of x.

The answer would be x=18. First you set it up by setting up an equation;
166=7x+40. Then you subtract 40 from each side. Last, you divide both sides by 7 and you should get x=166 or 166=x.