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

Input: Consider Input: [8523, 2741, 'B', 2283, 2319, 5579, 4895, 1093, '6081', 'w', 'j', 'U', '8951', 'g', '3325', '6587', '4979', 'X', 'x', '8257', 'G', 2491], [17, 6185, '6081', 'w', 'j', 'U', '8951', 'g', '3325', '6587', '4979', 'X', 'x', '8257', 'n', 4549, 'g', 1859, 'f', 'B', 4639, 6413]

Output: 6081, w, j, U, 8951, g, 3325, 6587, 4979, X, x, 8257


Input: Consider Input: [7409, 'l', 'h', '6739', '5187', 'K', 'D', '7539', '5609', 'x', 'p', 'S', 'j', 'j', '3077', '6081', 'd', '61', '2871', 's', 'J', 'M', 'Q', 'R', 5567, 'p', 'L'], [2329, 5573, 'N', 't', 3213, 9107, 9337, 79, 1607, 'J', 'y', 'g', 's', 'h', 4251, 'L', 3147, '6739', '5187', 'K', 'D', '7539', '5609', 'x', 'p', 'S', 'j', 'j', '3077', '6081', 'd', '61', '2871', 's', 'x', 'Q']

Output: 6739, 5187, K, D, 7539, 5609, x, p, S, j, j, 3077, 6081, d, 61, 2871, s


Input: Consider Input: ['i', 'N', 5599, '10031', '5739', '7349', '4701', '7403', 's', 'k', 'l', 451], [9983, 'h', 'a', 1875, 4005, 7891, '10031', '5739', '7349', '4701', '7403', 's', 'k', 'B', 'X', 6363, 109]


Output: 10031, 5739, 7349, 4701, 7403, s, k