Nissa is calculating a jail sentence for a man who was convicted of burglary. The base sentence is 1 year of jail for every $5,000 of goods stolen. The burglar is going to have his sentence length increased by 25% because this is his third offense, plus 2 additional years for resisting arrest. How many years total is the burglar's sentence if he stole $40,000 worth of goods?
First find how many years the base sentence will be: $40,000 / 1 year/$5,000 = 
<gadget id="calculator">40000/5000</gadget>
<output>8</output>
8 years.
Then find how long the increase for the third offense is: 8 years * 25% = 
<gadget id="calculator">8*25*.01</gadget>
<output>2</output>
2 years.
Then add the third-offense increase and the sentence for resisting arrest to the base sentence: 8 years + 2 years + 2 years = 
<gadget id="calculator">8+2+2</gadget>
<output>12</output>
12 years.

<result>12</result>