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

Ex Input:
['n', 137, 'q', 'Q', 10017, 2119, 'g', 8921, 'L', 'A', 'c', 'U', 7067, 'P', '7789', 'O', 'H', 'h', 'T', 'C', '9427', 'b', '4887', '7659', 'i', 'q', '8123', '7571', '8653', '4961', 'W', 'K', '6323', 'm', '9669', '4821', '6503', 'M', 'N', 4975, 'w', 4937, 9409, 2427, 'n', 7733, 'o', 3717, 141, 'e', 'z', 'X', 'c', 'q', 6443, 'W', 'Q', 'j', 7043, 1977], ['I', 9, 5027, 3147, 1945, 6141, 'u', 2685, 2253, 8359, 'z', 4431, 8465, 3145, 'k', '7789', 'O', 'H', 'h', 'T', 'C', '9427', 'b', '4887', '7659', 'i', 'q', '8123', '7571', '8653', '4961', 'W', 'K', '6323', 'm', '9669', '4821', '6503', 'M', 'B', 'N', 8081, 'W', 'H', 'A', 'w', 'j', 661, 'D', 8029, 49, 'y', 6639, 829, 771, 9575, 7371]

Ex Output:
7789, O, H, h, T, C, 9427, b, 4887, 7659, i, q, 8123, 7571, 8653, 4961, W, K, 6323, m, 9669, 4821, 6503, M


Ex Input:
['N', 'z', 9641, 'z', 'f', 'o', 'L', 'D', 'w', 2793, 'b'], ['Q', 'R', 'z', 'f', 'o', 'L', 'A', 4343, 8711]

Ex Output:
z, f, o, L


Ex Input:
[39, 'q', 5913, 'w', '7115', 'a', 'Z', 'C', 'X', '5899', 'J', 'y', 'l', '157', '4241', 'g', 't', '2581', 'n', 'c', '8945', 'f', 8745, 9695, 'b', 1037, 'p', 'i', 'z', 'u', 7387, 'd', 2207, 4811, 4665], ['R', 1333, 7657, 'w', 'k', 'Q', 7013, 'p', 3967, 8635, 8679, 7183, 'Q', 'g', 9375, 8163, 9421, '7115', 'a', 'Z', 'C', 'X', '5899', 'J', 'y', 'l', '157', '4241', 'g', 't', '2581', 'n', 'c', '8945', 'y', 'N', 2055, 'f', 4041, 'V', 417, 'i']

Ex Output:

7115, a, Z, C, X, 5899, J, y, l, 157, 4241, g, t, 2581, n, c, 8945