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

So we can say that she spent 10 dollars at the supermarket.