Dan has $ 31. He bought a candy bar for $ 38 and a chocolate for $ 14. How much money did he spend to buy candy bar than he did to buy chocolate?
Dan has $31. 
He buys a candy bar for $38. 
That means he spends $7 more on the candy bar than he has. 
He buys a chocolate for $14. 
That means he spends $3 more on the chocolate than he has. 

So, he spends more on the candy bar than he does on the chocolate by $4.