The shortest candle will go out first because carbon dioxide is more dense than air and will settle at the bottom and put out the flame.