Wayfair Interview Question

How do you calculate this price