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

[EX Q]: ['r', 'g', '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'G', 'N', 2585], ['X', 5347, 'M', 'Z', 4615, '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'P', 'o']
[EX A]: 997, n, 631, 527, E, A, n, n, G, 1197, R, L

[EX Q]: ['M', 'u', 'N', 'y', 295, 3475, 9835, 'H', 4717, 1403, 'Y', 9997, 8009, 'g', 'p', '5225', '6819', '2091', '2855', '3637', '2009', 'v', 'c', 'r', '8173', 'H', 'o', 'N', 'F', '1483', 'w', 3597, 1163, 5869], ['v', 9877, 'x', 5367, 4285, 'B', 4389, 3125, 'J', 'u', 2261, 8063, 'W', 'l', 'I', 'y', 9779, 'g', 'p', '5225', '6819', '2091', '2855', '3637', '2009', 'v', 'c', 'r', '8173', 'H', 'o', 'N', 'F', '1483', 'P', 5999, 'u', 2261, 'd', 'n', 'N', 9087, 'P']
[EX A]: g, p, 5225, 6819, 2091, 2855, 3637, 2009, v, c, r, 8173, H, o, N, F, 1483

[EX Q]: [4419, 5015, 6059, 'W', 9007, 3481, '2407', 'Y', 'w', '4599', '5793', 'U', 'L', '2659', 'j', 'P', 9285, 4423, 2601, 'o', 9775], [6245, 2891, 5827, '2407', 'Y', 'w', '4599', '5793', 'U', 'L', '2659', 'N', 'y', 'b', 6927, 'm']
[EX A]:
2407, Y, w, 4599, 5793, U, L, 2659