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: [5269, 9005, 9393, 'E', 5449, 707, 'V', 4891, '3237', 't', 'O', 'b', '3315', '3775', 'D', 'S', 'z', '2549', 'Z', '623', '7899', '1909', '5339', '4941', '5561', '7799', 'J', 'w', '431', '4143', 'I', 'w', '6061', 'T', '8527', 'I', 7507, 5667, 'x', 'u', 'h', 5189, 'U', 'p', 'b', 'q', 'U', 5643, 7645, 'Z', 'i', 4685], [6353, 3451, 'R', 'd', 3065, 'p', 'v', 'F', 'u', 'N', 'G', 'j', 197, 57, '3237', 't', 'O', 'b', '3315', '3775', 'D', 'S', 'z', '2549', 'Z', '623', '7899', '1909', '5339', '4941', '5561', '7799', 'J', 'w', '431', '4143', 'I', 'w', '6061', 'T', '8527', 'Q', 'm', 'a', 9913, 'K', 'r', 'y', 5193, 'y', 3207, 3423, 4199, 'j', 3391, 3531, 3805]
A:
3237, t, O, b, 3315, 3775, D, S, z, 2549, Z, 623, 7899, 1909, 5339, 4941, 5561, 7799, J, w, 431, 4143, I, w, 6061, T, 8527