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: [1385, 'y', 4053, 8453, 471, 2743, 'o', 329, 661, 1553, 'O', 's', 'n', 'i', 215, 'I', '7649', '57', '3969', 'E', 'G', '6809', '2355', 'B', 'n', '8823', '647', 'I', '7895', '3355', '7181', '5607', '2505', 'b', '193', 'W', 'r', 'n', 'o', 7817, 263], ['V', 'x', 3389, 6289, 3725, 3577, 1625, 'M', 'M', 209, 2323, 2437, 'c', 'n', 225, 'u', 1737, 'I', '7649', '57', '3969', 'E', 'G', '6809', '2355', 'B', 'n', '8823', '647', 'I', '7895', '3355', '7181', '5607', '2505', 'b', '193', 'W', 'r', 'n', 'm', 'J', 5631, 639, 6111, 2903, 'H', 's', 9211, 4331, 'm', 3993, 'u', 'j', 'm', 6821, 'U']
A:
I, 7649, 57, 3969, E, G, 6809, 2355, B, n, 8823, 647, I, 7895, 3355, 7181, 5607, 2505, b, 193, W, r, n