Capital One Interview Question

Use a weighted average.