In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['u', 'd', 'Y', 'y', 'i', 4735, 6015, 'Y', 'L', '3149', '8337', '2343', '9565', 'V', '4775', 'd', 8769, 4631, 4421, 'c', 7839, 8307, 609], [8493, 5897, 'M', 'Y', 'L', '3149', '8337', '2343', '9565', 'V', '4775', 'v', 'h']