The tag is removed by a cashier once they have been paid for, and if they aren't, an alarm is set off when the person leaves the store.
The tag is removed by a cashier. They have been paid for. An alarm is set off. The person leaves the store. They aren't.