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

Ex Input:
['f', 1055, 'X', 4189, 'G', 'J', 423, 8439, 'I', 'B', 6741, 151, 'R', 'A', 'S', 1495, 397, 'Y', 1945, 3493, 6379, 'b', '5877', 'E', 'd', '1819', '2441', '7059', '2535', '4855', '2281', '4211', '9017', '8631', 'C', '7107', '2473', '3995', '4923', '1735', '3551', 'U', 'X', 'V', 'v', 9151, 'L', 7093, 'r', 'n'], [5255, 'w', 'X', 5033, 'H', 4787, 7515, 'n', 9523, 'y', 'N', 4307, 3457, 1235, 3197, 'p', 'Q', 5355, 5255, 'E', 417, '5877', 'E', 'd', '1819', '2441', '7059', '2535', '4855', '2281', '4211', '9017', '8631', 'C', '7107', '2473', '3995', '4923', '1735', '3551', 'U', 'X', 'V', 'g', 'a', 'W', 2175, 4043, 'a', 'T', 1463, 1547, 7287, 'j', 'U', 2379, 5541, 7265]

Ex Output:
5877, E, d, 1819, 2441, 7059, 2535, 4855, 2281, 4211, 9017, 8631, C, 7107, 2473, 3995, 4923, 1735, 3551, U, X, V


Ex Input:
[6183, 4797, '4489', 'H', '1839', 'C', '5943', 'D', '2243', 'v', 'R', '2369', '653', 'Z', '4951', 'o', '5709', 'E', '6715', 'E', 'O', 'd', '9889', 'I', 'L', 'f', 2015], ['U', 'Z', 'q', 583, 'T', 'L', 5311, 'L', 't', 'A', 'W', 6061, 9623, 'x', '4489', 'H', '1839', 'C', '5943', 'D', '2243', 'v', 'R', '2369', '653', 'Z', '4951', 'o', '5709', 'E', '6715', 'E', 'O', 'd', '9889', 'I', 'q', 'X', 9877, 8877, 'R', 5899]

Ex Output:
4489, H, 1839, C, 5943, D, 2243, v, R, 2369, 653, Z, 4951, o, 5709, E, 6715, E, O, d, 9889, I


Ex Input:
['w', 'G', 5855, 'v', 'J', 'C', '2427', 'P', '6707', 'B', '6033', '6777', 'u', '925', 't', '913', 'W', '4469', 'c', '8691', '1215', 'G', '6655', 'u', '6599', '3989', 'Y', 'i', '4995', 'r', 'p', 'q', 6127, 'W'], [3069, 'v', 'b', 'g', 6275, 5339, 'b', 'v', '2427', 'P', '6707', 'B', '6033', '6777', 'u', '925', 't', '913', 'W', '4469', 'c', '8691', '1215', 'G', '6655', 'u', '6599', '3989', 'Y', 'i', '4995', 'U', 1007, 307, 693, 'H', 8703, 3833, 'o', 4607, 1803, 'R', 'T']

Ex Output:

2427, P, 6707, B, 6033, 6777, u, 925, t, 913, W, 4469, c, 8691, 1215, G, 6655, u, 6599, 3989, Y, i, 4995