In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 'c', 'z', '213', '2981', 'r', 'Z', 'H'], [4851, 9667, 1767, '213', '2981', 'r', 'E', 'h', 'V']