They don’t even need math...I once went to a chain restaurant and they closed temporarily because their computer was down and the cashier didn’t know how to make change...
The Super America here automatically kicks out the change from a machine so the cashiers don’t have to do all that hard math.