First find how many years the base sentence will be: $40,000 / 1 year/$5,000 = <<40000/5000=8>>8 years
Then find how long the increase for the third offense is: 8 years * 25% = <<8*25*.01=2>>2 years
Then add the third-offense increase and the sentence for resisting arrest to the base sentence: 8 years + 2 years + 2 years = <<8+2+2=12>>12 years
#### 12