To find out how much money Charlie had left after buying the bike, we need to subtract the cost of the bike from the amount he earned pet sitting.
Charlie earned: $585.80
Cost of the bike: $178.79
Now, we perform the subtraction:
$585.80 - $178.79 = $407.01
Therefore, Charlie had $407.01 left after he bought the bike.
The correct answer is B. $407.01.