In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6583, 4399, 'F', 8225, 'f', '6179', 'a', '7469', '221', 'W', 'Z', 'f', 'Z', 'p', '1957', 'y', 'H', '2545', '9263', 'C', 'A', 'D', 'B', 'n', 'f'], [9619, 6493, 9747, 4815, 8857, 6545, 6977, 's', '6179', 'a', '7469', '221', 'W', 'Z', 'f', 'Z', 'p', '1957', 'y', 'H', '2545', '9263', 'C', 'A', 'D', 9875, 5983, 'X', 7151, 5621, 4415, 8413, 187, 'B', 'W']