In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2965, 4469, 9205, 2191, 3721, 4519, 4129, 6229, 8783, 'L', '8073', '7477', '1727', 'q', '7191', 'x', '7707', '9629', '2079', '7977', '787', 'L', 'l', 5067], [7379, 5497, 'p', 1517, 'X', 'g', 'B', 'L', '8073', '7477', '1727', 'q', '7191', 'x', '7707', '9629', '2079', '7977', '787', 'G', 493, 5251, 1495, 'H', 2221, 11, 2713, 'f', 351]