In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['U', 8797, 'O', 2181, 'l', 'q', 4971, 9579, 'x', 5471, 'q', 'K', 'm', 'h', '6967', 'D', '1757', '8695', '5117', 'k', 'P', 'M', '3041', 's', 'b', 't', 1665, 'f', 'w', 'X', 'M', 7537, 'm', 'r', 7097, 7449, 7239, 'A'], [9409, 'v', 'j', 't', 'q', 'K', 'm', 'h', '6967', 'D', '1757', '8695', '5117', 'k', 'P', 'M', '3041', 's', 'b', 'E', 3579, 'q', 447, 'N', 3751, 'N', 'I', 's']