Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24; factors of 30: 1, 2, 3, 5, 6, 10, 15, 30.