In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2539, 'n', 'z', 'I', 'X', 'H', 3377, 'Z', '7851', 'i', '6497', 'Z', 'l', 'U', 'K', '8043', 'F', '3227', 'C', 'a'], [9907, 'S', 'T', 'E', 'k', '7851', 'i', '6497', 'Z', 'l', 'U', 'K', '8043', 'F', '3227', 'A', 'V', 'j', 'p', 9983, 7957, 'V', 7457, 'w']