When the green and yellow balloons are brought together, they repel each other and move away in opposite directions. This happens due to the principles of static electricity.
When you rub or handle balloons, they can become charged through a process called triboelectric charging. Depending on how they are charged, one balloon may become negatively charged while the other becomes positively charged. When you bring two balloons with the same charge close to each other, they repel because like charges repel. Conversely, if they have opposite charges, they would attract each other.
In your scenario, it's likely that both balloons ended up with similar charges during their interaction, causing them to repel each other when brought together.