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

Example Input: [7615, 3985, 'o', 1073, 5157, 5347, '7031', '7637', '6703', '7735', '8445', '9373', 'f', 'x'], [1247, 'x', 5707, 3649, 'g', 'z', '7031', '7637', '6703', '7735', '8445', '9373', 'h', 6317, 'T', 'M', 5703, 'h']
Example Output: 7031, 7637, 6703, 7735, 8445, 9373

Example Input: [2975, 3781, 'D', 'd', 'K', 4033, '3783', 'n', 'k', '327', 't', '9871', '233', 's', 'e', 'P', 3411, 'J', 'e'], [4339, 2811, '3783', 'n', 'k', '327', 't', '9871', '233', 'l', 'f', 4263, 7913]
Example Output: 3783, n, k, 327, t, 9871, 233

Example Input: [4109, 2549, 'i', 'N', 5859, '2257', 'N', '5749', '5011', '1157', 'r', 'y', 'K', '3801', 't', '9435', 'u', 'A', 'y', 'l', '8983', '4173', '213', 'A', 'g', 'm', 6639, 9115, 6285, 4815, 3179, 1025, 'T', 6353, 3929, 'E', 'w', 1057, 4043, 'K', 'V'], [6671, 'C', 9715, 'l', 6383, 'f', 'B', 'R', 'J', 4879, 'e', 'j', 721, '2257', 'N', '5749', '5011', '1157', 'r', 'y', 'K', '3801', 't', '9435', 'u', 'A', 'y', 'l', '8983', '4173', '213', 'A', 'V', 7453, 's', 'b', 7907, 6457, 'f', 'H', 2109, 4293, 7139, 'T', 'Z', 6293]
Example Output:
2257, N, 5749, 5011, 1157, r, y, K, 3801, t, 9435, u, A, y, l, 8983, 4173, 213, A