P = [1, 2, 3, 4, 6, 8, 9, 12, 16, 18] Q = [1, 2, 4, 8, 16]