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

[EX Q]: [4249, 1307, 'R', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'H', 'K', 7197, 3907, 'I', 5561], [8961, 1477, 'X', 'C', 7153, 1005, 'C', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'L', 7313, 2449, 4181, 1573]
[EX A]: 3377, 9383, w, 7897, S, 1791, f, 6787

[EX Q]: ['a', 4905, 8389, 9641, 'q', 'K', '1119', 'F', 'N', 'R', '3705', '2745', 'L', '2995', '6385', '1891', 'O', '6759', '2279', 'N', '9215', '5361', 'a', '2215', 'O', '9183', '8603', '1437', '9245', 'F', 'v', 5681, 'Q', 5143, 8875, 'i', 5537, 'f', 'J', 'j', 8747, 'K', 'f', 'z', 983, 'g', 8105, 'q', 4679, 2409], ['G', 'k', 'B', 'm', 'W', 3523, 9719, 'f', 8921, 'N', 6185, 'p', 7841, 'T', 'K', '1119', 'F', 'N', 'R', '3705', '2745', 'L', '2995', '6385', '1891', 'O', '6759', '2279', 'N', '9215', '5361', 'a', '2215', 'O', '9183', '8603', '1437', '9245', 'd', 's', 4795, 'P', 'e', 9789, 9769, 's', 8079, 5909, 8059, 'j', 'o', 'B', 'Z', 6147, 2177, 'L', 'a']
[EX A]: K, 1119, F, N, R, 3705, 2745, L, 2995, 6385, 1891, O, 6759, 2279, N, 9215, 5361, a, 2215, O, 9183, 8603, 1437, 9245

[EX Q]: [8781, 'x', '7497', '1139', 'g', 9545], [1873, 9731, '7497', '1139', 'w', 1483]
[EX A]:
7497, 1139