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

[EX Q]: [2087, 'D', 815, 'a', 6837, 'U', 1683, 9549, 'Q', 4313, 2991, 8685, 'Q', 1253, 'O', 9367, 4835, 5191, 'L', 'e', '9385', '2631', '5849', '2469', 'S', 'Y', '967', '2589', '9057', '9315', '9591', '5801', 'B', '5991', 'g', '7317', '4923', 'L', 'B', 'N', '8863', 'v', 'q', '2887', 'f', '9939', 'd', 'i', 'a', 'S', 7967, 'N', 'r'], [8841, 'y', 'F', 1845, 'X', 's', 8663, 'B', 'h', 5885, 'p', 5555, 3051, 2359, 'q', 'm', 2675, 53, 'U', 7017, 8161, 4755, 'B', 5367, 8577, 'H', 4223, 'e', '9385', '2631', '5849', '2469', 'S', 'Y', '967', '2589', '9057', '9315', '9591', '5801', 'B', '5991', 'g', '7317', '4923', 'L', 'B', 'N', '8863', 'v', 'q', '2887', 'f', '9939', 'd', 'Z', 'R', 'X', 'j', 'T', 'N', 'V', 2931, 'X', 'g', 'P', 2979, 'o', 'B', 8283, 'r', 'D', 1051, 'E']
[EX A]: e, 9385, 2631, 5849, 2469, S, Y, 967, 2589, 9057, 9315, 9591, 5801, B, 5991, g, 7317, 4923, L, B, N, 8863, v, q, 2887, f, 9939, d

[EX Q]: ['I', 583, 4045, 't', 'N', 'H', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'R', 'i', 493, 2571, 7837], ['E', 3649, 'M', 7321, 8477, 1609, 'p', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'j', 4719, 'u', 'F', 'U', 'P', 'c', 3121, 'u', 6871, 'T']
[EX A]: 1017, u, 7255, 8583, M, x, 143, e, l, U, S, 791, a, 6927, 3887

[EX Q]: [4285, 277, 3509, 7413, '899', 'p', '7255', '6199', '3717', '2267', '1719', '165', 'd', 'T', 'm', 'R', 4097, 'v'], ['K', 5367, 515, 'r', 1807, 'r', 6037, 5737, 4369, 8023, '899', 'p', '7255', '6199', '3717', '2267', '1719', '165', 'd', 'T', 'm', 'X', 9885, 9203, 853, 'S']
[EX A]:
899, p, 7255, 6199, 3717, 2267, 1719, 165, d, T, m