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

Input: Consider Input: ['i', 'n', '7509', '7241', 'V', 'k', 205, 'H'], ['s', 4349, 7023, '7509', '7241', 'V', 'O', 't', 9237]

Output: 7509, 7241, V


Input: Consider Input: [6507, 8623, 6879, '1327', '6971', 'd', 'A', 3663, 7831], [1711, 4751, 3479, '1327', '6971', 'd', 'u', 1771]

Output: 1327, 6971, d


Input: Consider Input: ['n', 6703, 'e', 8201, 'O', 2989, '3049', '9943', 'v', '9651', 'V', 'm', '4743', '5505', 'c', 'F', 6079, 7861, 6891, 4301, 797, 1929], [5925, 'b', 725, '3049', '9943', 'v', '9651', 'V', 'm', '4743', '5505', 'c', 'j', 'R', 2867, 6451, 'E', 'm', 'I', 9427]


Output: 3049, 9943, v, 9651, V, m, 4743, 5505, c