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

Input: Consider Input: [5703, 'd', 2573, 'V', 9273, '7133', 'O', '6191', '6151', '5017', 'c', 'b', '1721', 'Z', 'J', 'C', 'O', 6077, 1125, 1345, 8989], ['f', 59, 8449, 5387, 8075, 9721, 5271, '7133', 'O', '6191', '6151', '5017', 'c', 'b', '1721', 2375, 3141, 'Z', 'Y', 'N']

Output: 7133, O, 6191, 6151, 5017, c, b, 1721


Input: Consider Input: ['z', 'L', 'e', 3279, 's', 'U', 'p', '2885', 'w', 'x', 7713], [3907, 'e', 's', 'U', 'p', '2885', 'w', 'F', 'x', 'v', 5319]

Output: s, U, p, 2885, w


Input: Consider Input: [4349, 2791, 1085, 2919, 3077, 'w', 4269, 'r', '4861', '9013', 'x', 'M', '2361', '7893', 'g', 'T', '6779', '5305', '6757', 'f', '3953', 'd', '8661', 'K', 8263, 5425, 6225, 4895, 'r', 3535], [6051, 2691, 7713, 'w', 'Y', 2137, 6551, 5803, 'u', 'Z', 'v', 7255, 1611, '4861', '9013', 'x', 'M', '2361', '7893', 'g', 'T', '6779', '5305', '6757', 'f', '3953', 'd', '8661', 'I', 'W', 'q', 'e', 3965, 'E', 9403, 'l', 4871, 5037, 1647, 6273, 7577, 221]


Output: 4861, 9013, x, M, 2361, 7893, g, T, 6779, 5305, 6757, f, 3953, d, 8661