Amazon Interview Question

Generic question about picking. Simple algebra