In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Example input: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Example output: 8297, b
Example explanation: 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: ['m', 'v', 'K', 't', 9483, 'S', 'A', 3421, 'M', 2919, 'n', 'M', 'a', 'D', 'L', 'w', 2647, 'n', 'P', 9045, 8895, 'm', 7699, 9083, 2991, '1439', 'D', '371', 'V', '7079', 'k', '737', 'R', '2075', '2195', '1847', 't', '3653', '7825', 'D', '2305', 'p', 'C', '6255', '1505', 'q', '5267', 'E', '9407', '567', 'x', '8405', 'Q', 2883, 1627, 6383, 'a', 8439, 395, 3501, 'Y', 'j', 'l', 'l', 4199, 'g', 8417, 'Q', 1157], ['c', 'h', 769, 4499, 4065, 'm', 'c', 4145, 1491, 7171, 'T', 4737, 'y', 9929, 9641, 'd', 5243, 'V', '1439', 'D', '371', 'V', '7079', 'k', '737', 'R', '2075', '2195', '1847', 't', '3653', '7825', 'D', '2305', 'p', 'C', '6255', '1505', 'q', '5267', 'E', '9407', '567', 'x', '8405', 'C', 'R', 6803, 'z']
A:
1439, D, 371, V, 7079, k, 737, R, 2075, 2195, 1847, t, 3653, 7825, D, 2305, p, C, 6255, 1505, q, 5267, E, 9407, 567, x, 8405