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

Ex Input:
[9881, 2501, 7097, 3329, 1065, 'h', 'J', 1357, 'Y', 'x', 7747, 357, 3529, 6397, 'L', '539', '2309', 'a', 'B', '965', '7339', '5615', 'O', 'b', '9687', '1095', '2253', 'G', 'G', '5381', 'e', '7179', '3215', 'z', '7589', 'V', '6001', '2451', '6691', '2189', 'd', 'o', 'Y', 363, 7935, 'M', 'o', 'k', 'w', 9975, 405, 'a'], ['E', 'g', 2627, 1707, 2107, 8717, 'D', 'e', 'g', 'l', 'N', 'd', '539', '2309', 'a', 'B', '965', '7339', '5615', 'O', 'b', '9687', '1095', '2253', 'G', 'G', '5381', 'e', '7179', '3215', 'z', '7589', 'V', '6001', '2451', '6691', '2189', 'K', 'X', 4927, 'U', 'P', 'r', 'c', 'o', 'm', 7749]

Ex Output:
539, 2309, a, B, 965, 7339, 5615, O, b, 9687, 1095, 2253, G, G, 5381, e, 7179, 3215, z, 7589, V, 6001, 2451, 6691, 2189


Ex Input:
[3043, 'd', 1055, '2909', 'J', 'D', '4735', '6701', 'v', 'P', '4341', '7905', 'G', '5297', '6721', 'Y', 'f', 4599], ['Q', 'X', 2931, 'f', 3139, 'r', 3625, 4375, 'B', 8381, '2909', 'J', 'D', '4735', '6701', 'v', 'P', '4341', '7905', 'G', '5297', '6721', 'N', 8281, 'W', 'u', 5969, 'w', 'b', 1735, 'j']

Ex Output:
2909, J, D, 4735, 6701, v, P, 4341, 7905, G, 5297, 6721


Ex Input:
['q', 'Z', 'c', 8577, '4103', '6049', '1431', '9431', 'f', 'w', 'B', '6337', 'T', '617', '9577', '9881', 'w', 'W', '5523', '7421', 'V', 505], [9481, 8509, 2443, 9199, 4395, 1497, 8281, 3303, 'j', 881, '4103', '6049', '1431', '9431', 'f', 'w', 'B', '6337', 'T', '617', '9577', '9881', 'w', 'W', '5523', '7421', 'y', 2725, 5579, 8579, 'V']

Ex Output:

4103, 6049, 1431, 9431, f, w, B, 6337, T, 617, 9577, 9881, w, W, 5523, 7421