Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['C', 'b', 9059, 'S', 'k', 'x', '5597', 'X', '6005', 'I', '1619', 'N', 'T', 'J', 'u', '5505', 'L', 'Z', '5583', '1409', '4181', '7463', '6397', 'c', '3625', 'N', 'c', 't', 'm', 'W', '1723', 'K', 'A', 't', 'g', 5687, 1501, 'p', 'O', 7005, 'z'], ['E', 'R', 'B', 9151, 6649, 5921, 9923, 's', 2069, 'R', 'A', 1285, 'Y', 'Y', 'Y', 'T', 'p', 'Z', 'y', 'l', 5277, 8809, 'Q', 'V', 'q', 'G', 'N', 'x', '5597', 'X', '6005', 'I', '1619', 'N', 'T', 'J', 'u', '5505', 'L', 'Z', '5583', '1409', '4181', '7463', '6397', 'c', '3625', 'N', 'c', 't', 'm', 'W', '1723', 'K', 'P', 'Z', 17, 8249, 'k', 'a', 1601, 'k', 'w', 7973, 7773, 'r', 3841, 6875, 'A', 5911, 'I', 'U', 'q', 'C', 'w', 253, 7513]
Output:
x, 5597, X, 6005, I, 1619, N, T, J, u, 5505, L, Z, 5583, 1409, 4181, 7463, 6397, c, 3625, N, c, t, m, W, 1723, K