To find out how much money Charlie had left after buying the bike, you subtract the cost of the bike from the amount he earned.
Charlie's earnings: $585.80
Cost of the bike: $178.79
Amount left = Earnings - Cost of the bike
Amount left = $585.80 - $178.79
Amount left = $407.01
So, the answer is B. $407.01.