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: [7819, 'N', 'p', 3913, 8163, 9859, 'X', 4841, 'N', 'g', 'q', 'w', '8635', '3879', '1231', '9609', 't', '785', '7849', 'c', 'r', 'l', '6241', 'O', 'Z', '1975', '3691', 'b', '7917', '8185', 'j', '8545', '3277', '5601', '2963', 'i', '9839', '1429', 'H', 'w', 2923, 8653, 'H', 'P', 'X', 'E', 'e', 8721, 1895, 2079, 'g', 'X', 'r', 8681, 'G', 8751, 'w', 'v'], [9853, 9305, 'c', 981, 't', 3177, 'J', 'L', 'Q', 'w', 'x', 2277, 6615, 'k', 6507, 'Y', 2367, 9679, 1327, 2017, 'g', 'q', 'w', '8635', '3879', '1231', '9609', 't', '785', '7849', 'c', 'r', 'l', '6241', 'O', 'Z', '1975', '3691', 'b', '7917', '8185', 'j', '8545', '3277', '5601', '2963', 'i', '9839', '1429', 'p', 8785, 'X', 'O', 9633, 1697, 9219, 'n', 's', 'A', 'S', 4917, 9141, 5105, 5833, 3957, 'p', 'K', 'R', 2211, 'D', 'O', 'C', 'w', 7, 8267, 'K']
A:
g, q, w, 8635, 3879, 1231, 9609, t, 785, 7849, c, r, l, 6241, O, Z, 1975, 3691, b, 7917, 8185, j, 8545, 3277, 5601, 2963, i, 9839, 1429