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: [7159, 'B', 2419, 8905, 'F', 'E', 'X', 3087, 'v', 6001, 6629, 4693, 'b', 'L', 't', 8965, 'O', 'i', 6057, '8477', 'q', '5545', '4115', '6551', '8645', 'r', '889', '6749', 'v', '1397', '1247', 'f', '6333', 'X', '10009', '1299', '8979', '1107', '2119', '505', 'G', 'O', '6739', 'P', 'k', 9703, 9751, 'd', 5567, 'd', 'y', 6753, 2999], ['t', 'O', 'B', 8847, 'h', 1719, 'f', 483, 'Y', '8477', 'q', '5545', '4115', '6551', '8645', 'r', '889', '6749', 'v', '1397', '1247', 'f', '6333', 'X', '10009', '1299', '8979', '1107', '2119', '505', 'G', 'O', '6739', 'P', 'v', 5985, 4961, 6807, 'U', 3551, 9585]
A:
8477, q, 5545, 4115, 6551, 8645, r, 889, 6749, v, 1397, 1247, f, 6333, X, 10009, 1299, 8979, 1107, 2119, 505, G, O, 6739, P