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

Example Input: [5701, 'Y', 2511, 4707, 'i', 9083, 1187, '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'X', 8863, 7467, 665, 3485, 4035, 'g', 8795], [189, 8331, 'N', 'S', 'U', '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'R', 't', 9581, 5575, 'Q', 'Q', 1209]
Example Output: 749, v, i, f, j, 5983, 4221, p, q, 8703, n, Z, O, A, H

Example Input: [5555, 'e', 'k', '4653', 'S', 'q', 'o', 'z'], [8655, 3981, 'k', '4653', 'S', 'q', 'k', 8991, 8619, 's']
Example Output: k, 4653, S, q

Example Input: [9509, 831, 'r', 'C', '8605', '9047', '4259', 't', '3729', '3883', '5549', 'e', '1823', '4097', 'n', '3745', 's', '1027', '5107', '8745', 'd', 6015, 8445, 835], [1727, 'W', 4589, 'q', 5673, 'T', 'a', 9975, 'B', 'r', 'C', '8605', '9047', '4259', 't', '3729', '3883', '5549', 'e', '1823', '4097', 'n', '3745', 's', '1027', '5107', '8745', 'r', 9467, 1587, 8003, 9117, 'X', 2843, 3719, 'g', 559, 7551, 'I', 'm', 7495, 2247]
Example Output:
r, C, 8605, 9047, 4259, t, 3729, 3883, 5549, e, 1823, 4097, n, 3745, s, 1027, 5107, 8745