In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Ex Input:
['N', 7229, '4831', 'P', 'E', 7925], [3857, 'C', '4831', 'P', 'g', 'p']

Ex Output:
4831, P

Ex Input:
['X', 'j', 'Y', 4541, 7639, 'm', 'K', 305, 6733, 5077, 'S', 'S', '6005', 'v', '5903', '4231', 'z', 'p', '7235', 'w', '3597', '979', '3071', '3945', '8645', '8455', '9083', '8905', '999', '111', 'N', 'H', '2777', 'e', '9415', 'j', 'Q', '2679', 'w', 'g', '9581', '6053', 'j', 'P', 'x', 'r', 'K', 'C', 'R', 'k', 985, 1029, 't', 'c', 3835], [8563, 'b', 'D', 8893, 3193, 1043, 5807, 7563, '6005', 'v', '5903', '4231', 'z', 'p', '7235', 'w', '3597', '979', '3071', '3945', '8645', '8455', '9083', '8905', '999', '111', 'N', 'H', '2777', 'e', '9415', 'j', 'Q', '2679', 'w', 'g', '9581', '6053', 'z', 'S', 6681, 8187, 7139, 5221, 9683, 7271, 'c', 419, 'i']

Ex Output:
6005, v, 5903, 4231, z, p, 7235, w, 3597, 979, 3071, 3945, 8645, 8455, 9083, 8905, 999, 111, N, H, 2777, e, 9415, j, Q, 2679, w, g, 9581, 6053

Ex Input:
['Y', 'p', 'a', 'Q', 1827, 7529, 'X', 't', 4629, 2533, 'M', 'm', 'd', '7697', '627', 'l', 'g', '4737', '1605', '3733', '6629', '7765', '1877', 'W', '7779', '8821', 'g', 'd', 'Y', 'x', 'w', '8019', 'F', 9269, 'R', 'N', 4997, 7237, 'U', 'R', 'p', 'n', 'u', 'Q', 6635, 1161, 'k'], ['Z', 'K', 6079, 'k', 'o', 'E', 8105, 6973, 103, 'S', 8509, 3909, 'u', 7437, 'L', 'C', 'd', '7697', '627', 'l', 'g', '4737', '1605', '3733', '6629', '7765', '1877', 'W', '7779', '8821', 'g', 'd', 'Y', 'x', 'w', '8019', 'y', 7951, 'z', 'c', 'O', 'k', 2897, 1325, 1347, 9021, 'T', 4119, 'c', 4957, 'U', 't', 'a']

Ex Output:
d, 7697, 627, l, g, 4737, 1605, 3733, 6629, 7765, 1877, W, 7779, 8821, g, d, Y, x, w, 8019