Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['U', 'I', 2575, 'M', 'N', 6555, 8229, 'u', 8155, 'j', 'a', 'I', 9447, 3089, 2239, 7739, 'F', 'C', '6983', 'F', 'W', 'r', '7391', '6741', 's', 'x', '2577', '2089', '5395', '4491', 'P', 'G', '4879', 's', 'n', 'm', 'h', '9037', 'c', '1049', '3931', 'f', 'S', 'S', 'f', 'q', 'f', 'b', 927, 'y', 'm', 'r', 7995, 'E', 7125, 'O'], [6411, 'V', 4917, 4039, 'A', 8531, 'l', 8115, 'l', 'U', 'J', 'f', 5769, 'P', 'F', 'B', 3793, 'h', 'L', 4129, 621, 'Q', 'C', 8861, 'C', '6983', 'F', 'W', 'r', '7391', '6741', 's', 'x', '2577', '2089', '5395', '4491', 'P', 'G', '4879', 's', 'n', 'm', 'h', '9037', 'c', '1049', '3931', 'f', 'S', 'S', 'f', 'q', 'f', 'L', 'i', 5655, 'T', 1459, 'p', 4105, 'i', 4437, 2293, 'U', 'e', 6203, 167, 'b', 'm', 5375, 'B']
Output:
C, 6983, F, W, r, 7391, 6741, s, x, 2577, 2089, 5395, 4491, P, G, 4879, s, n, m, h, 9037, c, 1049, 3931, f, S, S, f, q, f