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: [421, 'o', 'Z', 'q', 4491, 'u', 'V', 'y', 'A', '7307', '2563', '7081', '1517', '4743', 'E', 'g', 'm', 6701, 477], [4525, 's', 'l', 'c', 'u', 'V', 'y', 'A', '7307', '2563', '7081', '1517', '4743', 'E', 'g', 'z', 2167, 4203, 'a', 'q', 'g', 'd', 8241, 'Q']
A:
u, V, y, A, 7307, 2563, 7081, 1517, 4743, E, g