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: ['k', 'z', 7033, 4047, 8999, 'B', 7739, 'O', 8667, 'R', 't', 'v', 'X', 'O', '3319', 'm', '1295', '6071', 'W', 'k', '1023', 'L', 't', '4735', 'L', '6833', '4087', '8535', 'A', 'K', '9701', 'W', '9201', '5797', '5619', '3937', '7625', '8445', 'F', 'o', 'd', 'Z', 'Z', 'Y', 'z', 'c', 'c', 'z', 5773, 9155, 'h', 'y', 4383, 5073, 'r', 'P', 'J', 'b', 8749, 'y', 5751, 'I', 4643, 6909, 'a', 'Y', 9197, 'n', 6743, 'P'], ['j', 'o', 'i', 'd', 'y', 1935, 'w', 'n', 'W', 'A', 'A', 'b', 919, 4417, 'e', 'm', 'Y', 'b', 3751, 'T', 341, 8715, 5209, 7931, 't', 'v', 'X', 'O', '3319', 'm', '1295', '6071', 'W', 'k', '1023', 'L', 't', '4735', 'L', '6833', '4087', '8535', 'A', 'K', '9701', 'W', '9201', '5797', '5619', '3937', '7625', '8445', 'F', 'o', 'W', 933, 'W', 4109, 6991, 6985, 1075, 439, 'l', 9663, 'U', 'y', 1025, 227, 'w', 2093, 9537, 'u', 7527, 'd', 'z', 2237, 1669, 5345, 'F', 'C', 505, 'B', 5827, 'K']
A:
t, v, X, O, 3319, m, 1295, 6071, W, k, 1023, L, t, 4735, L, 6833, 4087, 8535, A, K, 9701, W, 9201, 5797, 5619, 3937, 7625, 8445, F, o