Talking as if the balls do not get put back into the bag, the first probability is 3/10 for yellow. For red it will be 7/9 because there is one less ball (yellow) in the bag.
Factors of 792: 1, 2, 3, 4, 6, 8, 9, 11, 12, 18, 22, 24, 33, 36, 44, 66, 72, 88, 99, 132, 198, 264, 396, 792. Factor pairs: 792 = 1 x 792, 2 x 396, 3 x 264, 4 x 198, 6 x 132, 8 x 99, 9 x 88, 11 x 72, 12 x 66, 18 x 44, 22 x 36 or 24 x 33.