In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 'O', 5503, 2819, 295, 3343, 'B', 8135, 'c', 'q', 6357, 'x', 'n', 'c', 1743, '361', 'A', 'z', '3897', '207', '547', 'c', '2621', '1199', '663', '8223', 'x', 'P', '4587', 'N', 'v', 'v', 'q', 'I', 8447, 'a', 9679, 'R', 'K', 4779, 'B', 2559, 'a', 'Z', 6809, 2393, 7039, 'R'], ['r', 9231, 2235, 1453, 'q', 1511, 'e', 'z', 'a', 'A', 'F', 9853, 'G', '361', 'A', 'z', '3897', '207', '547', 'c', '2621', '1199', '663', '8223', 'x', 'P', '4587', 'N', 'v', 'v', 'U', 'r', 6159, 'f', 'J', 'Q', 'm', 3363]