In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4781, 'c', 'h', 'j', 'H', 4125, 'M', 8371, '1829', 'j', 'U', 'N', '4785', 'A', 'J', 'q', 'D', 'f', 'v', 'q', 2685, 2997, 4443], [2643, 'X', 3755, 'n', 9729, '1829', 'j', 'U', 'N', '4785', 'A', 'J', 'q', 'D', 'Z', 'G', 'b', 'f', 'E', 5893, 'a', 's', 3629]