Walgreens Interview Question

A few difficult math problems but not impossible.