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

[EX Q]: ['W', 'A', '5747', 'i', 'M', 'N', 8861], [1997, 'D', 5205, '5747', 'i', 'M', 'D', 3319, 1895]
[EX A]: 5747, i, M

[EX Q]: [8555, 1665, 'm', 5361, 2523, 'L', 'T', 'P', 'B', 'q', 'W', '2357', '6563', 'd', '8239', 'p', 'c', 'e', 'd', 'S', 'k', 'H', 'U', 'g', 'j', 'r', 't', 'F', 8547, 1815, 1599, 4083, 'm', 9959, 'R', 'L'], [7829, 'N', 1893, 4933, 9825, 9043, 'B', 'q', 'W', '2357', '6563', 'd', '8239', 'p', 'c', 'e', 'd', 'S', 'k', 'H', 'U', 'g', 'j', 'r', 'C', 'p', 2443, 'Q', 'H', 155, 277, 7833, 8183]
[EX A]: B, q, W, 2357, 6563, d, 8239, p, c, e, d, S, k, H, U, g, j, r

[EX Q]: [8785, 'E', 'L', '8861', 'N', 'O', '3871', 'X', '1563', 'D', '2213', '6651', 's', 'r', 'H', '6613', '4733', 'a', 'K', 4989, 9659, 3507, 533, 'I', 5423, 'V', 8107, 'z', 'K', 'f'], ['T', 9239, 9007, 5225, 'u', 8425, 9835, 757, 8623, 'e', 6893, 3561, 3735, 173, 'L', '8861', 'N', 'O', '3871', 'X', '1563', 'D', '2213', '6651', 's', 'r', 'H', '6613', '4733', 'o', 3397, 4671, 'g', 'E', 'N']
[EX A]:
L, 8861, N, O, 3871, X, 1563, D, 2213, 6651, s, r, H, 6613, 4733