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: ['D', 'x', 3945, 2187, 387, 'F', 8683, 5313, 'Q', 'b', 4543, 181, 'u', 'u', '1479', 'e', 'v', 'b', 'f', '6847', 'H', '9497', '1991', '2243', '4205', '3139', '993', '6047', 'k', 'S', '427', '4601', 'e', 'i', 'j', 'r', 'r', '9781', 't', 'Z', 'p', 'K', 8639, 3301, 1573, 6865, 3511, 2361, 'R', 4169, 'Z', 755, 6279, 'T', 'F', 'Q', 'V', 'g', 'V', 7003, 'Y', 1179, 8023, 'd', 9645, 6109, 'q'], [3795, 'D', 8623, 6959, 2321, 'w', 'p', 'p', 'u', 'u', '1479', 'e', 'v', 'b', 'f', '6847', 'H', '9497', '1991', '2243', '4205', '3139', '993', '6047', 'k', 'S', '427', '4601', 'e', 'i', 'j', 'r', 'r', '9781', 't', 'Z', 'W', 3057, 8699, 991, 9437, 'L', 2089, 6361, 'X', 'r', 5813, 'S', 5241, 'i', 'S', 'z', 'M', 7815, 'k', 3473, 4703, 2379, 6501, 5515, 7239, 'P', 'b']
A:
u, u, 1479, e, v, b, f, 6847, H, 9497, 1991, 2243, 4205, 3139, 993, 6047, k, S, 427, 4601, e, i, j, r, r, 9781, t, Z