In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1023, 'k', 7571, 7397, 9153, 9027, 1735, 9135, 'q', 2729, 5131, 3875, 8719, 'R', 'J', 'f', 'q', 'o', '3935', '9543', '8945', 'N', 'L', 'i', 'h', '8123', 'H', '3687', 'O', '7311', 'u', '2443', 'p', 'X', 'W', 'J', 'v', 'p', 8789], ['e', 'P', 'o', '3935', '9543', '8945', 'N', 'L', 'i', 'h', '8123', 'H', '3687', 'O', '7311', 'u', '2443', 'p', 'X', 'W', 'P', 1017, 'x', 49, 'm', 'h', 9129, 1789, 'x', 1779, 'h', 'm', 1557, 'S', 'g', 9183, 3021]