Capital One Interview Question

Ice cream company case question with basic algebra