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

Input: Consider Input: ['J', 'h', '8587', 'b', 't', 'k'], [8955, 7253, '8587', 'b', 'e', 8655]

Output: 8587, b


Input: Consider Input: ['f', 'I', 'G', 627, 6145, 4779, '7903', 'c', '6667', 'j', 'N', 'F', '8035', 'E', 'u', 'V', '3605', 'y', '9445', '1541', '6709', 'Z', 'g', 'W', '7809', 't', '1887', 's', 'a', 9101, 2313, 't', 1319, 7473, 'p', 'a', 'd', 2643, 3033, 8709], [6835, 'a', 'g', 6065, 'v', 'm', 3313, 'V', '7903', 'c', '6667', 'j', 'N', 'F', '8035', 'E', 'u', 'V', '3605', 'y', '9445', '1541', '6709', 'Z', 'g', 'W', '7809', 't', '1887', 'X', 609, 'c', 6763, 2011, 'u', 'I', 8969, 315, 1553, 967, 'c', 'W', 9607, 'u', 'E', 'g', 3559, 'd', 99]

Output: 7903, c, 6667, j, N, F, 8035, E, u, V, 3605, y, 9445, 1541, 6709, Z, g, W, 7809, t, 1887


Input: Consider Input: ['T', 5987, '3759', 'O', 'x', '4311', 'e', '6841', 'R', 'd', 'y', '2745', 'n', 5107, 'w', 'u'], [6625, 'm', 8849, 3385, 6853, '3759', 'O', 'x', '4311', 'e', '6841', 'R', 'd', 'y', '2745', 'a', 'G', 'G', 'e', 3501]


Output: 3759, O, x, 4311, e, 6841, R, d, y, 2745