Walgreens interview question

A few difficult math problems but not impossible.