In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['g', 'W', 4853, 4995, 'n', 'W', 'V', 1165, 'R', 'G', '4689', '1517', 'd', 'x', '2999', 'H', '1995', 'U', 't', '3775', 'H', '9977', 'h', 'p', 'Y', 7303, 'f', 'C', 9657, 9731], [709, 'z', 'n', 'G', '4689', '1517', 'd', 'x', '2999', 'H', '1995', 'U', 't', '3775', 'H', '9977', 'D', 1019, 5149, 'k', 'J', 3631, 'C', 3331, 5171, 7011, 'g']