After Olivia visited a supermarket there were 2 dollars left. If there were 49 dollars in her wallet initially How much did she spend?
Olivia has 49 dollars in her wallet. 
She spends some of her money at the supermarket. 
She has 2 dollars left. 

That means she spent 47 dollars at the supermarket.