In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5595, 'f', '3271', 'd', 'c', 'B', 'E', 'x', '4183', 'F', '9565', 'U', 'x', '6589', 'q', '2543', 'K', '8939', '505', 'z', 'v', 1091, 'j', 5849, 'X', 5853, 1799, 685, 'k', 2105, 'c', 357, 7419, 'A', 6147], ['b', 4699, 'r', 'e', '3271', 'd', 'c', 'B', 'E', 'x', '4183', 'F', '9565', 'U', 'x', '6589', 'q', '2543', 'K', '8939', '505', 'o', 6321, 'S', 'm', 'y', 8261, 2513, 'e', 7695, 7427, 'w', 'e', 'L']