There were w dollars in Olivia's wallet. She collected x more dollars from an atm. After she visited a supermarket there were y dollars left. How much more money did she spend at the supermarket than she collected at the atm?
y = w + x - z 

z = w + x - y 

z - w = x - y 

z - w = 77 

z = 77 + w 

z = 130 

The supermarket visit cost 130 - 53 = 77 dollars.