Amazon interview question

Generic question about picking. Simple algebra