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

Input: Consider Input: ['g', 305, '8447', 'K', 'y', 'D'], [2445, 5519, '8447', 'K', 't', 'l']

Output: 8447, K


Input: Consider Input: ['Q', 'I', 't', 'b', 9175, 2827, 'P', 'v', 8293, 'c', 1863, 'J', 's', '6749', '5147', 'e', 'O', '8605', '613', '7647', '5691', 'v', '2303', '7061', '1091', '8563', 'T', '511', 'U', '8991', '231', 'f', '8793', '2147', '6075', 'p', 'i', 9597, 4909, 'J'], ['S', 'a', 9123, 'I', 'F', 'z', 3481, 4235, 'X', 'I', 6447, 6365, 'T', '6749', '5147', 'e', 'O', '8605', '613', '7647', '5691', 'v', '2303', '7061', '1091', '8563', 'T', '511', 'U', '8991', '231', 'f', '8793', '2147', '6075', 'p', 'Q', 'R', 'W', 'm', 719, 'A', 'h', 3093, 'O', 8221, 9879, 'W', 6953, 8729, 2853, 3651, 'X', 2079, 4499, 'Q', 7143]

Output: 6749, 5147, e, O, 8605, 613, 7647, 5691, v, 2303, 7061, 1091, 8563, T, 511, U, 8991, 231, f, 8793, 2147, 6075, p


Input: Consider Input: ['O', 1797, 'Y', 'm', '5521', '8971', '1021', '4351', '5497', 'M', '265', '219', '8203', '661', '3407', 'Q', 'A', 'n', 'r', 5275, 5227, 'l'], [8499, 'C', 'X', 'O', 965, 4053, 5705, 1325, 'm', '5521', '8971', '1021', '4351', '5497', 'M', '265', '219', '8203', '661', '3407', 'Q', 'A', 'm', 8845, 1349, 'a', 'l', 9063, 'c', 'u', 1999, 'w']


Output: m, 5521, 8971, 1021, 4351, 5497, M, 265, 219, 8203, 661, 3407, Q, A