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

Example input: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Example output: 8297, b
Example explanation: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].
Q: [4111, 8359, 'E', 'k', 4047, 'T', 405, 119, 7867, 's', 6873, 'Z', '2887', '5343', '4827', '425', 'v', '4219', '4825', '5453', '9185', 'b', 'S', '1727', 'P', '6215', '4023', '5415', '1921', '2471', '6981', '3897', '5023', '9795', '4151', 'K', 'H', 'x', 'v', 'I', 'm', 'N', 'r', 'h', 55, 3309, 8373, 'L', 227, 3623, 5359, 'R', 1989, 'z', 3321, 'G', 'k', 'G', 'd', 5143, 'n', 'I'], ['h', 9675, 5473, 4507, 7415, 8159, 'Z', '2887', '5343', '4827', '425', 'v', '4219', '4825', '5453', '9185', 'b', 'S', '1727', 'P', '6215', '4023', '5415', '1921', '2471', '6981', '3897', '5023', '9795', '4151', 'K', 'H', 'x', 'v', 'I', 'm', 'f', 3385, 1209, 511, 7405, 'e', 7971, 'z', 'b', 1897, 'R', 'F', 'd', 8215, 2659, 6863, 'F', 6597, 'M', 'o', 'X', 4053, 6265, 'w', 1921, 2945, 'B', 5319]
A:
Z, 2887, 5343, 4827, 425, v, 4219, 4825, 5453, 9185, b, S, 1727, P, 6215, 4023, 5415, 1921, 2471, 6981, 3897, 5023, 9795, 4151, K, H, x, v, I, m