In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Q: [7849, 813, 1309, 3749, '10001', 'g', '1057', 'c', 't', 't', 'i', 2269, 'M', 'q', 373], ['d', 4077, 3209, 'g', 5643, '10001', 'g', '1057', 'c', 't', 't', 'h', 'Y', 8349, 'q', 3939, 1333]

A: 10001, g, 1057, c, t, t
****
Q: [7485, 'Y', 'T', '5979', 'w', 'Q', 'e'], [1525, 4389, 'm', 'T', '5979', 'w', 'w', 1497, 8995]

A: T, 5979, w
****
Q: [737, 'z', 4401, 6317, 't', 'B', 3815, 'm', 'G', '8709', '4749', 'J', '8885', 'k', 'Y', '3083', 'X', '8267', 'T', 'A', 'A', '7049', '6681', '6111', 's', 't', 'h', 1687, 'T', 'O', 'A', 'r', 'U', 6703, 'u', 'm', 1571, 'J', 2289, 8279], [5617, 'D', 'p', '8709', '4749', 'J', '8885', 'k', 'Y', '3083', 'X', '8267', 'T', 'A', 'A', '7049', '6681', '6111', 's', 'n', 5571, 8277, 'D', 1885, 7949, 3767, 'o', 'K', 5755, 'v', 9117, 's', 'b']

A:
8709, 4749, J, 8885, k, Y, 3083, X, 8267, T, A, A, 7049, 6681, 6111, s
****