In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9951, 'm', 'Y', 6561, 8299, 8263, 'c', 'H', 8869, 'e', '2509', '6191', '9449', 'Z', 'y', '9315', '5035', '331', '2055', '8011', 'k', '655', '8033', '3827', '1289', 'z', 'n', 'S', 'R', 3135, 189, 4297, 'n', 'C', 1529, 'p', 37, 's', 2585, 'm', 'w', 'P'], [4943, 'J', 'q', 9975, 9413, 3367, 2505, 'y', 'E', 'l', 'A', 5193, 'e', '2509', '6191', '9449', 'Z', 'y', '9315', '5035', '331', '2055', '8011', 'k', '655', '8033', '3827', '1289', 'z', 'Z', 5743, 'k', 'K', 10031, 3595, 'f', 'K', 3769, 'w', 9941, 925, 'C', 'x', 1779, 'H']