Do the first cup Dry ice contains co2 which is acidic therefore the indicator colour changed from green(water is neutral) to a yellow reddish colour . For the second cup you added ammonia which is basic so therefore the indicator showed a transition from basic to acidic