Wayfair interview question

Case interview. Solving for average.