In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['N', 'b', 'G', 2585, 3393, 'U', 'M', '7255', 'J', '3875', '2953', '6945', '5285', '9777', 'n', '2351', 'r', 'P', 'm', 'L', 'F', 5435, 8095, 2339, 5491, 3359, 1533, 4957], ['J', 8195, 'W', 'I', 'T', 'i', 'b', 337, 6941, 'i', 1073, 'b', 8835, 'D', 'M', '7255', 'J', '3875', '2953', '6945', '5285', '9777', 'n', '2351', 'r', 'P', 'm', 'L', 'h', 'H', 'b', 'G', 'a', 'x']