In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8851, 3063, 'Y', 'h', 1023, 1367, 4079, 'q', 'S', 'w', '6981', '9629', 'z', 'x', 'n', 'Z', '8579', 'N', 'e', '9621', '7031', '6109', 'l', 'S', 'w', 'k', 'B', 'f', 807, 1623], ['d', 8463, 'c', 'V', 187, 7749, 'g', 5835, 'J', 2715, 'Z', 'z', 6051, 5413, 'S', 'w', '6981', '9629', 'z', 'x', 'n', 'Z', '8579', 'N', 'e', '9621', '7031', '6109', 'k', 'S', 'Q', 'O', 2573]