This classic thought experiment explains the weird decisions we make about spending money