In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2649, 'g', 7819, 'z', 1231, 'L', 9385, 'H', 7815, 2195, 'M', '1975', '8167', '9723', 'h', '5557', 'm', 's', '5905', '4409', 'T', '275', '7761', '5577', 'x', '5493', '4621', 'a', 'o', '4563', '2765', 'm', 'T', 'p', 1389, 183, 'U'], ['Y', 'x', 6895, 7249, 'm', 2931, 'F', 1725, 'T', 8615, 9075, 3337, 'U', 973, 9283, 1745, 2655, 2853, 'u', '1975', '8167', '9723', 'h', '5557', 'm', 's', '5905', '4409', 'T', '275', '7761', '5577', 'x', '5493', '4621', 'a', 'o', '4563', '2765', 'M', 'Y', 6507, 4755, 2883, 'J']