Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['p', 3833, 969, 'p', 7833, 4681, 'o', 7755, 'q', 2037, 'I', 'A', 'w', 'V', 9725, 8001, 3401, '5093', '3681', '133', '8831', 'Z', '7885', '2107', 'z', 'o', 'h', 'F', 'Q', 'e', '9277', '1497', '6845', 'S', 'T', 'p', 3, 'n', 3969, 'D', 201, 'Z', 331, 6907], ['S', 'M', 4627, 'R', 7405, 9421, 'j', 4449, 7105, 'o', 2851, 9413, 1913, 7901, '5093', '3681', '133', '8831', 'Z', '7885', '2107', 'z', 'o', 'h', 'F', 'Q', 'e', '9277', '1497', '6845', 'S', 'Q', 45, 7613, 'a', 8633, 3045, 'v']
Output:
5093, 3681, 133, 8831, Z, 7885, 2107, z, o, h, F, Q, e, 9277, 1497, 6845, S