In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['N', 9577, 'V', 'O', 4709, 6461, 4075, 'v', 8869, 4781, 'l', 'k', '3749', 'm', 'x', '9867', '5825', '8331', 'Z', 'J', 'L', 'm', '7585', '9497', 'B', 'G', '8985', '341', 'N', 'p', '1999', 'a', '3943', '659', 'f', '7747', 'Z', 1347, 9789, 3679, 7901], ['p', 'Z', 8453, 'N', 's', 7229, 4425, 4955, 6463, 'X', 1011, 'n', 343, 'w', 'w', 'Y', 'm', 'k', '3749', 'm', 'x', '9867', '5825', '8331', 'Z', 'J', 'L', 'm', '7585', '9497', 'B', 'G', '8985', '341', 'N', 'p', '1999', 'a', '3943', '659', 'f', '7747', 'G', 'B', 5725, 475, 'o', 5893]