In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
One example is below.
Q: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
A: 8297, b
Rationale: 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: ['R', 6991, 7613, 'b', 5683, 681, 'p', 5895, 7907, 'P', 9285, 'U', '5727', 'U', 'N', '1467', '2999', 'C', '6775', '8563', 'z', 'e', '6761', 'N', '1557', '5303', '1207', '6077', '1561', 'a', '5673', 'O', '4727', '5471', 'E', 's', 't', 'W', 5631, 'H', 'S', 'Z', 'z'], [5789, 6839, 'u', 7493, 'C', 9361, 3165, 'U', '5727', 'U', 'N', '1467', '2999', 'C', '6775', '8563', 'z', 'e', '6761', 'N', '1557', '5303', '1207', '6077', '1561', 'a', '5673', 'O', '4727', '5471', 'E', 's', 't', 'Y', 8889, 6443, 8353, 'b', 'M', 'a']
A:
U, 5727, U, N, 1467, 2999, C, 6775, 8563, z, e, 6761, N, 1557, 5303, 1207, 6077, 1561, a, 5673, O, 4727, 5471, E, s, t