In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5947, 'p', 'p', 'g', 1959, 'V', 9519, 'h', 'Y', 'o', 'b', 2001, 'G', '2277', 'j', 'F', '1121', 'Z', '391', '9691', 'v', 'i', '3797', 'i', '8341', 'C', 5079], ['a', 4529, 'n', 4207, 'e', 'g', 9897, 10015, 'G', '2277', 'j', 'F', '1121', 'Z', '391', '9691', 'v', 'i', '3797', 'i', '8341', 'H', 3245, 'A', 6827, 7175, 'Y']