Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5501, 2445, 6735, 'm', 4475, 8797, 'd', 'G', 4321, 'C', 8765, 377, 7725, 's', 7219, 9167, 'a', 5891, 'S', 1601, 'X', 3747, 'E', 'C', '8781', '3165', 'n', 'O', '4433', '2501', 'Z', '5477', 'H', '9925', '2531', '763', '2037', 'I', '2917', 'f', '205', '2969', '6091', 'G', 'K', 'J', 9069, 679, 8853, 9445, 9435, 's', 2045], [8125, 'h', 'k', 155, 8421, 8195, 'Q', 4735, 'g', 'w', 1455, 'I', 875, 'H', 'Z', 3247, 8161, 't', 'E', 'C', '8781', '3165', 'n', 'O', '4433', '2501', 'Z', '5477', 'H', '9925', '2531', '763', '2037', 'I', '2917', 'f', '205', '2969', '6091', 'G', 'K', 'D', 411, 2371, 'x', 341, 'e']
Output:
E, C, 8781, 3165, n, O, 4433, 2501, Z, 5477, H, 9925, 2531, 763, 2037, I, 2917, f, 205, 2969, 6091, G, K