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

Ex Input:
[337, 2045, 613, 'P', 89, 10003, 'q', 'b', 'n', 6479, 'Y', 'm', 5259, 'c', 9101, 7599, 6353, 5467, 'O', 'U', 'N', 7841, 'S', 'S', '6141', 'p', '9427', 'U', '1347', 'I', '5193', 'O', 'N', 's', '1617', 'e', '2297', 'X', 'y', 'e', '507', 'R', 'a', 'E', 'q', '4953', '729', 'T', 'w', '7017', '8647', 'N', 'w', 7365, 'W', 981, 245, 8933, 'h', 4477, 1395, 'J', 8069, 5313, 'J', 709, 3533, 'b', 8629, 'G', 'P', 'Y', 5397], [3017, 1679, 'O', 'p', 2983, 9493, 4763, 'P', 'Q', 'd', 139, 'i', 2459, 'G', 'c', 299, 'Q', 'Z', 1841, 'S', 'S', '6141', 'p', '9427', 'U', '1347', 'I', '5193', 'O', 'N', 's', '1617', 'e', '2297', 'X', 'y', 'e', '507', 'R', 'a', 'E', 'q', '4953', '729', 'T', 'w', '7017', '8647', 'q', 'k', 825, 'D', 't', 'j', 'T', 6747, 'q', 7211, 'i', 1557, 'f', 7917, 'R', 1325, 6801, 'T', 'Q', 2305, 's', 'K', 'R', 2877, 'p']

Ex Output:
S, S, 6141, p, 9427, U, 1347, I, 5193, O, N, s, 1617, e, 2297, X, y, e, 507, R, a, E, q, 4953, 729, T, w, 7017, 8647


Ex Input:
['k', 521, 'b', 'j', 8637, 2323, 'S', 2743, 'I', 5351, 'B', 1525, 6545, 5197, 'Y', 'S', 'F', '8581', 'C', '2183', 'Q', 'N', '1435', 'E', '8709', '7613', 'C', '7381', '7499', '9041', '1479', 'I', 's', '7101', '6233', '9063', '9969', '5315', 'e', '2495', 'x', 8587, 1937, 1217, 'w', 'o', 'J', 'H', 'N'], [4927, 7101, 1961, 1277, 6009, 'x', 6541, 'h', 'S', 'F', '8581', 'C', '2183', 'Q', 'N', '1435', 'E', '8709', '7613', 'C', '7381', '7499', '9041', '1479', 'I', 's', '7101', '6233', '9063', '9969', '5315', 'e', '2495', 'f', 't', 'l', 3599, 'z', 'S', 7683, 'I', 101, 'D', 'E', 4087, 3221, 'n', 'R', 1809, 7069, 7145, 5573, 8597, 2473]

Ex Output:
S, F, 8581, C, 2183, Q, N, 1435, E, 8709, 7613, C, 7381, 7499, 9041, 1479, I, s, 7101, 6233, 9063, 9969, 5315, e, 2495


Ex Input:
[6487, 'B', 'I', 'N', 'p', 'p', 6069, 2951, 'd', 'n', 'm', 9363, '8949', 'F', '105', 'd', 'W', '7263', '4025', 'z', '9815', '6739', '9233', '491', '2693', 'd', 'i', 4593, 'B', 8301, 'z', 'Y', 's', 'E', 'X', 'F', 'e', 'n'], [8237, 'a', 9883, 'u', 'Y', 2703, 6965, 'q', 5395, 8871, 2069, 'L', 8491, 'v', '8949', 'F', '105', 'd', 'W', '7263', '4025', 'z', '9815', '6739', '9233', '491', '2693', 'd', 'D', 6599]

Ex Output:

8949, F, 105, d, W, 7263, 4025, z, 9815, 6739, 9233, 491, 2693, d