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: [8015, 3995, 9171, 6383, 'k', '5049', '6531', '7053', '9561', 'y', 'i', 'G', '8001', 'j', 'r', '5149', '8313', 'E', 'c', 't', '9431', 'o', 'Q', 'L', 6781, 1427, 'i', 3753, 8195, 3175, 2401], ['x', 'U', 'e', 't', 'F', 'C', 25, 's', 8503, 'h', 'c', 5731, 'm', 'k', '5049', '6531', '7053', '9561', 'y', 'i', 'G', '8001', 'j', 'r', '5149', '8313', 'E', 'c', 't', '9431', 'C', 'E', 4493, 'm', 8521, 8847, 'w', 'g']
A:
k, 5049, 6531, 7053, 9561, y, i, G, 8001, j, r, 5149, 8313, E, c, t, 9431