Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['A', 'F', 'd', 1189, 1375, 1651, 5105, 'V', 739, 1027, 1013, 7415, 'M', 9647, 1157, 'X', 'Y', 'h', 'a', 2923, 'Q', 'r', 'C', 6217, 1577, 'w', 'P', '7421', '8093', '6415', 'N', 'K', '5191', '4349', 'T', 'F', 'M', '7881', 'w', '7033', '4351', 'x', '8053', '8801', '3485', 'c', '8957', '3839', '9785', '7639', 'b', 'T', '3007', 'W', 2433, 5889, 4773, 'K', 'j', 'd', 9369, 'Q', 1477, 2285, 'v', 'o', 'D', 841, 8549, 'g', 'z', 7255, 'C', 7371, 4869, 'v'], [4093, 'T', 'b', 'T', 'h', 357, 5361, 'M', 665, 6209, 2279, 5371, 'p', 'W', 'f', 1623, 'f', 7567, 'h', 4617, 463, 7337, 'P', '7421', '8093', '6415', 'N', 'K', '5191', '4349', 'T', 'F', 'M', '7881', 'w', '7033', '4351', 'x', '8053', '8801', '3485', 'c', '8957', '3839', '9785', '7639', 'b', 'T', '3007', 'R', 'G', 'z', 'S', 7359, 'x', 'b', 'l', 'n', 2719, 'B']
Output:
P, 7421, 8093, 6415, N, K, 5191, 4349, T, F, M, 7881, w, 7033, 4351, x, 8053, 8801, 3485, c, 8957, 3839, 9785, 7639, b, T, 3007