In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['d', 3401, 'M', 8785, 3153, 'G', 4133, 7505, 9071, 'N', '7561', 'm', '8733', 'a', 'c', '1817', '7145', 'A', '6593', 'K', 'e', 'N', 'K', 'l', '7185', '9837', '1949', 'n', 'o', 'x', 'N', 5951, 'n', 'D', 'j', 7001, 8401, 'm', 'M', 'b', 'w'], [9675, 'x', 'f', 5813, 'N', '7561', 'm', '8733', 'a', 'c', '1817', '7145', 'A', '6593', 'K', 'e', 'N', 'K', 'l', '7185', '9837', '1949', 'n', 'q', 'z', 'R', 'B', 'n', 'a', 'g', 1791, 1257, 'x', 4785, 1223, 'z', 'g', 'X', 6289, 'H']