In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 'A', 'b', 'z', 'z', 8153, 'E', 'q', 7553, 7025, 'h', 9781, 'a', 'M', 5617, 'm', '2673', 'X', 'L', '8859', '3933', '6909', '6617', 'j', 'h', '1079', '161', '6741', 'h', '533', 'h', '4025', 'R', 'l', 'Q', 'v', 'P', '2507', 't', 'A', 'U', 'g', 6457, 'B', 'S', 8155, 5127, 'D', 'Q', 'O', 'z'], [3585, 8231, 'f', 1319, 'C', 1501, 8823, 'S', 'm', '2673', 'X', 'L', '8859', '3933', '6909', '6617', 'j', 'h', '1079', '161', '6741', 'h', '533', 'h', '4025', 'R', 'l', 'Q', 'v', 'P', '2507', 'H', 'h', 3651, 1259, 6457, 6105, 'M', 7807, 8885, 1003, 2345, 7671, 2047]