IXL Learning interview question

Standard riddle with jellybeans