A bag contains 7 red discs, 8 blue discs and 9 yellow discs. Two discs are drawn at random from the bag. If the discs are the same colour then they are put back into the bag. However, if the discs are different colours then they are removed from the bag and a disc of the third colour is placed in the bag. This procedure is repeated until there is only one disc left in the bag or the only remaining discs in the bag have the same colour. What colour is the last disc (or discs) left in the bag?
Clarification:
If, for example, in the first drawing a red disc and a blue disc are picked then these two discs will no longer be in the bag but a new yellow disc is put into the bag. Now the bag contains 6 red discs, 7 blue discs and 10 yellow discs.
Attribution: Intermediate Mathematical Olympiad Cayley paper 2023