In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1517, 'e', 1763, 'c', 6913, 5061, 'o', '23', 'A', 'M', '9781', 'b', 't', '4623', '4511', 'T', 'D', '6389', 'Y', 8837, 4125], [8995, 'f', 'y', 2125, 'p', 3809, 'g', 7171, 'r', 'o', '23', 'A', 'M', '9781', 'b', 't', '4623', '4511', 'T', 'D', '6389', 'H', 'c', 'w', 7029, 2729, 8693, 3709, 'r', 'k']