Dan had $ 3 left with him after he bought a candy bar. If he had $ 4 at the start how much did the candy bar cost?
First, we know that Dan has $3 left. This means that whatever he spent before must have totaled to $4 - $3, or $1. 

We also know that he started with $4. So the candy bar must have cost $1.