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

Ex Input:
[4931, 5661, 8651, 'l', 'd', '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'K', 2179, 5747, 'C'], [3737, 7345, 3921, 'i', 9199, 3269, '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'A', 'd', 185, 'M']

Ex Output:
9585, r, U, z, 6511, 9443, 2917


Ex Input:
[2389, 1227, 'v', 2701, 5365, 'C', 'T', 4909, 'f', 5507, 'x', 4791, 9815, 'Y', '7579', 'F', 'M', '1193', 'L', '8619', '7713', '9917', '2751', '9845', '1395', '6667', 'd', 'F', '8595', 'U', '1891', '6595', 's', 'x', 'W', 'p', 'Z', 'j', '4475', 'j', '2077', 'G', 49, 9519, 7577, 9555, 283, 803, 8999, 'Z', 867, 9103, 'm', 'J', 'M', 'G', 7561, 179, 'Q', 9789, 163, 5773, 3305, 'w', 8611, 9897], ['r', 5979, 8571, 1269, 'p', 5027, 'w', 9363, 'j', 2449, '7579', 'F', 'M', '1193', 'L', '8619', '7713', '9917', '2751', '9845', '1395', '6667', 'd', 'F', '8595', 'U', '1891', '6595', 's', 'x', 'W', 'p', 'Z', 'j', '4475', 'j', '2077', 'P', 'e', 'z', 8561, 'g', 8125, 'a', 3265, 2003, 5175, 5873, 'L', 3443, 'K', 'Q', 5099, 8433, 8947, 397, 37, 889, 2105]

Ex Output:
7579, F, M, 1193, L, 8619, 7713, 9917, 2751, 9845, 1395, 6667, d, F, 8595, U, 1891, 6595, s, x, W, p, Z, j, 4475, j, 2077


Ex Input:
['w', 7201, 'b', 4201, 4227, 'r', '6505', 'N', '2885', '937', 'N', '221', '3189', '9157', 'O', '7007', 'U', '185', 'q', '9399', 'P', 'J', 'r', 'o', 'L', 'O', '4439', 'W', 'D', 'p', 'G', '6015', '6679', 'H', 'I', 'R', 9521, 8475, 6573, 'b', 'e', 9099, 227, 'v', 'g', 'b', 'R', 'p', 'c', 6195, 3983, 'p', 'o', 9577, 1115, 4339, 'Q'], [2801, 'L', 'r', '6505', 'N', '2885', '937', 'N', '221', '3189', '9157', 'O', '7007', 'U', '185', 'q', '9399', 'P', 'J', 'r', 'o', 'L', 'O', '4439', 'W', 'D', 'p', 'G', '6015', '6679', 's', 7365, 8581, 5133, 8503, 'j', 's', 'M', 9931]

Ex Output:

r, 6505, N, 2885, 937, N, 221, 3189, 9157, O, 7007, U, 185, q, 9399, P, J, r, o, L, O, 4439, W, D, p, G, 6015, 6679