In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['L', 'p', 'S', '1367', 'P', '377', 'L', 'q', 'Z', '4211', 'W', 'v', 'M', 5035], ['F', 'C', 'c', 'a', 6261, 'd', 2433, '1367', 'P', '377', 'L', 'q', 'Z', '4211', 'Y', 'Y', 3851, 2991, 'E', 'o']