Capital One interview question

Use a weighted average.