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: [8875, 9199, 'N', 'M', 2239, 'S', 'a', 'M', 'c', 359, 'y', 'F', 'd', 5673, 'U', 9617, 1109, 'F', '3517', '233', '6687', '3821', 'w', 'a', '7797', '3137', 'v', 'X', 's', 'a', '1193', '2381', 'E', '3571', '2907', '5897', '2675', 'g', 'x', 'D', 4807, 6567, 3017, 7311, 'X', 's', 9949, 1795, 6779, 'Q'], [1755, 3205, 'q', 1187, 'T', 4039, 9253, 'x', 7989, 5781, 'F', '3517', '233', '6687', '3821', 'w', 'a', '7797', '3137', 'v', 'X', 's', 'a', '1193', '2381', 'E', '3571', '2907', '5897', '2675', 'V', 'R', 8521, 4535, 6957, 6279, 2065, 8099, 2669, 'n', 6617, 'v', 'b', 'N', 'b', 'p', 'R']
A:
F, 3517, 233, 6687, 3821, w, a, 7797, 3137, v, X, s, a, 1193, 2381, E, 3571, 2907, 5897, 2675