Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['W', 6617, 'q', 1969, 5991, 'V', 'z', 3245, 'G', 4449, 'u', 4987, 917, 8295, 'r', 2899, 'O', 'G', '4901', '5789', '989', 'C', '8651', 'T', 'Z', '6929', 'M', '7967', '7335', '5041', '7759', 'n', '2255', 's', 'i', 'B', 'I', 1977, 'e', 1625, 'w', 497, 3021, 8997, 'Q'], [9417, 7135, 'p', 9627, 'd', 'G', '4901', '5789', '989', 'C', '8651', 'T', 'Z', '6929', 'M', '7967', '7335', '5041', '7759', 'n', '2255', 's', 'z', 6981, 3991, 'I', 6173, 871, 6899, 8763, 'A', 1801]
Output:
G, 4901, 5789, 989, C, 8651, T, Z, 6929, M, 7967, 7335, 5041, 7759, n, 2255, s