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: ['V', 7709, 4475, 645, 4411, 1767, 'q', '6043', '8667', '6921', '135', '1301', '8169', 'Z', 'n', 'k', '7735', 'b', 'a', '3479', 'R', 5119, 'R', 4175], [2729, 'j', 'R', 'q', '6043', '8667', '6921', '135', '1301', '8169', 'Z', 'n', 'k', '7735', 'b', 'a', '3479', 'O', 7551, 3035, 6087]
A:
q, 6043, 8667, 6921, 135, 1301, 8169, Z, n, k, 7735, b, a, 3479