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

[EX Q]: [1307, 'u', 'Z', 3323, 191, 'i', 'h', 't', 'L', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'C', 'M', 'y', 'h', 7985, 9989, 'j'], [2817, 1955, 2973, 'Y', 9221, 'z', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'G', 'M', 2083, 'O']
[EX A]: 8549, 7861, 9747, 3985, g, r, 1247, R, S, a, a, 749

[EX Q]: ['V', 6053, 'M', 2269, 'E', 'B', 'I', 9767, 393, 'i', 5887, 5245, 'e', 'i', '2747', '6063', '3773', 'q', 'f', 'Y', '5879', 'V', 'b', 'o', '4781', '5103', 'X', '2261', '251', 'O', '3317', 'e', 'H', 'o', '983', '1083', 'S', '8549', 'b', '1143', '963', 'l', 'E', 'H', 9787], ['Z', 2199, 8743, 'x', 'J', 'f', 5521, 's', 7415, 'X', 'Z', 'r', 8587, 'd', 'i', '2747', '6063', '3773', 'q', 'f', 'Y', '5879', 'V', 'b', 'o', '4781', '5103', 'X', '2261', '251', 'O', '3317', 'e', 'H', 'o', '983', '1083', 'S', '8549', 'b', '1143', '963', 'X', 'k', 4785, 'g', 8259, 8061, 'S', 6959, 'w', 'f', 3331]
[EX A]: i, 2747, 6063, 3773, q, f, Y, 5879, V, b, o, 4781, 5103, X, 2261, 251, O, 3317, e, H, o, 983, 1083, S, 8549, b, 1143, 963

[EX Q]: [6339, 481, 8153, 1701, 8027, 7789, 823, 4143, '7867', '4543', 'h', 'D', '2007', '2585', 'U', '2323', '9017', '3839', 'o', 'j', 'V', '8783', 'P', 5597], [4905, 7131, 'A', 29, 'a', 1457, 7933, 'J', 3135, 'G', 1697, '7867', '4543', 'h', 'D', '2007', '2585', 'U', '2323', '9017', '3839', 'o', 'j', 'V', '8783', 'S', 9629, 'A', 'm', 8637, 'N', 'b', 'j', 'x', 641]
[EX A]:
7867, 4543, h, D, 2007, 2585, U, 2323, 9017, 3839, o, j, V, 8783