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

Input: Consider 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']

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


Input: Consider Input: [787, 577, 1283, 10019, '3229', 'C', 'b', '8319', 'j', 7553, 8091], [4091, 1749, 'L', 'A', '3229', 'C', 'b', '8319', 'U', 9603]

Output: 3229, C, b, 8319


Input: Consider Input: ['V', 'K', 7411, 3215, 5407, 'V', 'm', 3863, 5399, 'w', 'c', 8173, 4349, 6805, 2519, '9283', 'w', 'a', '1791', 'D', 'n', 'O', 'M', 'x', 'Z', 'N', '1355', '4901', 'y', '2309', 'x', 'V', '8737', 'j', 'D', '7595', 'V', 'I', 'w', 'O', 6089, 'o', 'k', 'T', 469, 8387, 'Y', 5751, 5709, 3875, 'B'], ['f', 'X', 'P', 5837, '9283', 'w', 'a', '1791', 'D', 'n', 'O', 'M', 'x', 'Z', 'N', '1355', '4901', 'y', '2309', 'x', 'V', '8737', 'j', 'D', '7595', 'V', 'R', 'Q', 7657, 'K', 'r', 5777, 4089, 'I', 9389, 'q', 's', 'y', 8047, 6901, 'T', 8157, 5, 943, 7767, 'W']


Output: 9283, w, a, 1791, D, n, O, M, x, Z, N, 1355, 4901, y, 2309, x, V, 8737, j, D, 7595, V