Q: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4709, 3917, 4043, 'm', 6747, 9707, 'S', 'd', 'g', '7197', 't', '1109', 'G', '3387', 'O', 'k', 'M', 'a', 'v', '5417', 'T', '2147', 'D', 'U', '6633', '1001', '4199', 'O', '2695', '9745', '1885', 'R', '9557', 'n', 'z', 4857, 3121, 'o', 4961, 'B', 'w', 2757, 'F', 5393, 'e', 'I', 6007, 317, 501, 3881, 'j', 1455], ['S', 6173, 'd', 'g', '7197', 't', '1109', 'G', '3387', 'O', 'k', 'M', 'a', 'v', '5417', 'T', '2147', 'D', 'U', '6633', '1001', '4199', 'O', '2695', '9745', '1885', 'R', '9557', 'B', 997, 'O', 'Q', 'Y', 4541, 8951, 'Q', 5665, 'c', 8861, 'C', 1815, 'G', 'u', 6343, 9673, 2315, 9851, 'S', 'P', 'z', 'Z', 1917, 4577]
A:
d, g, 7197, t, 1109, G, 3387, O, k, M, a, v, 5417, T, 2147, D, U, 6633, 1001, 4199, O, 2695, 9745, 1885, R, 9557