Deshaun rented a truck for one day. There was a base fee of $20.99, and there was an additional charge of 71 cents for each mile driven. Deshaun had to pay $155.18 when he returned the truck. For how many miles did he drive the truck?

Let's call the number of miles Deshaun drove the truck "x".

We know that there was a base fee of $20.99, so Deshaun has already paid that.

The additional charge for each mile driven is 71 cents, which we can write as 0.71 dollars. So the total charge for the miles driven is 0.71x dollars.

To find out how many miles Deshaun drove, we need to set up an equation:

$20.99 + 0.71x = $155.18

Now we can solve for x:

$0.71x = $134.19

x = 189

So Deshaun drove 189 miles.