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

Ex Input:
['C', 'd', 'U', 'O', 'X', 'Q', 75, 'n', '1745', '4477', '5381', 'S', 'G', '257', 'Q', '2891', 'e', 'U'], ['G', 'H', 7457, 'N', '1745', '4477', '5381', 'S', 'G', '257', 'Q', '2891', 'G', 'x', 'm', 865, 9285, 1495, 'l', 'J']

Ex Output:
1745, 4477, 5381, S, G, 257, Q, 2891


Ex Input:
['X', 8541, 'z', 'A', '3985', '181', 'k', '6327', '4303', 'Q', '6295', 'i', 'b', 'A', 'h', 'f', '4947', 'N', '4649', 'S', '1957', '2921', '7817', 'i', 'r', 3095, 't', 'i', 5121, 2147, 'O', 4145, 1995, 'E', 'a'], ['g', 'v', 491, 'F', 'Q', 8013, 5789, 6119, 'p', 8193, 'G', 6543, 'n', 'f', 5239, 'z', 'A', '3985', '181', 'k', '6327', '4303', 'Q', '6295', 'i', 'b', 'A', 'h', 'f', '4947', 'N', '4649', 'S', '1957', '2921', '7817', 'i', 'y', 9617, 4351, 'X', 9425, 3497, 6049, 8113]

Ex Output:
z, A, 3985, 181, k, 6327, 4303, Q, 6295, i, b, A, h, f, 4947, N, 4649, S, 1957, 2921, 7817, i


Ex Input:
[9019, 9697, 'Y', 'Q', 6041, 'm', 'U', 'c', 8681, 2627, 6193, '589', '8007', 'H', '3547', 'Q', '4887', 'X', 'c', '757', 'y', '7671', 'U', 'D', '3189', 'S', '5437', '6519', 'W', 'S', 'G', '8195', 'G', '7485', '9023', 'c', 'w', 'q', '4473', 'C', 2793, 'w', 6909, 2383, 8939, 'e'], ['H', 7813, 5567, 'v', 'c', 'U', 3603, 'U', 'o', 3759, 687, 'E', 4019, 1141, '589', '8007', 'H', '3547', 'Q', '4887', 'X', 'c', '757', 'y', '7671', 'U', 'D', '3189', 'S', '5437', '6519', 'W', 'S', 'G', '8195', 'G', '7485', '9023', 'c', 'w', 'q', '4473', 'q', 'W', 8127, 'q', 1197, 'z', 'w', 6227, 'R', 'k']

Ex Output:

589, 8007, H, 3547, Q, 4887, X, c, 757, y, 7671, U, D, 3189, S, 5437, 6519, W, S, G, 8195, G, 7485, 9023, c, w, q, 4473