Here's an example run:

:: 5/6 blue.2 red.3 > purple.5
:: 11/21 yellow.7 red.3 > orange.11

AC 126 blue red red yellow
00 126 × 5/6 = 105/1, red purple yellow
01 105 × 11/21 = 55/1, purple orange