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

Example Input: [6987, 'F', 'j', 'E', 'P', 947, 823, 'P', 4655, 'C', 'l', 'R', 'z', 5705, 'I', 'H', 'y', 2167, 7443, 'E', 'F', 'd', '567', '1385', 'd', '1013', 'Q', '3983', '5891', '6397', '1701', 'd', 'v', 'N', '4551', '9415', '5691', 'n', '3435', '1485', 'u', 'Q', '3191', 'D', 'y', 665, 'P', 'k'], [4453, 'F', 'b', 1309, 'm', 'H', 'd', '567', '1385', 'd', '1013', 'Q', '3983', '5891', '6397', '1701', 'd', 'v', 'N', '4551', '9415', '5691', 'n', '3435', '1485', 'u', 'Q', '3191', 'p', 'f', 7091]
Example Output: d, 567, 1385, d, 1013, Q, 3983, 5891, 6397, 1701, d, v, N, 4551, 9415, 5691, n, 3435, 1485, u, Q, 3191

Example Input: ['J', 'b', 'R', 'v', 6421, 'i', 4179, '3583', '7897', '9525', 'b', '4163', '5465', '255', '5923', 't', 9093, 9035, 8487], ['V', 'j', '3583', '7897', '9525', 'b', '4163', '5465', '255', '5923', 'F', 6281, 8109, 'R', 2589]
Example Output: 3583, 7897, 9525, b, 4163, 5465, 255, 5923

Example Input: ['y', 8629, 1551, 489, 2105, 'g', 'J', 619, 3007, 'i', 'R', '3859', 'b', '187', 'H', 'R', 'n', '7119', 'n', 'z', '5599', 'v', 'w', '3279', '2309', 'g', '9413', '3707', '4511', '2041', '6001', '8981', '7553', '1805', '917', '7611', 'c', 'w', 3219, 3845, 8799, 863, 3447, 2431, 3993, 6037], ['C', 1657, 'w', 'J', 1865, 'Y', 'B', 2367, 'J', 8289, 'L', 6135, 'i', 7479, 'p', 'i', 'R', '3859', 'b', '187', 'H', 'R', 'n', '7119', 'n', 'z', '5599', 'v', 'w', '3279', '2309', 'g', '9413', '3707', '4511', '2041', '6001', '8981', '7553', '1805', '917', '7611', 'c', 'O', 5539, 'l', 463, 4343, 7989, 9705, 7003, 2153, 7151, 487, 7013, 3523, 'c']
Example Output:
i, R, 3859, b, 187, H, R, n, 7119, n, z, 5599, v, w, 3279, 2309, g, 9413, 3707, 4511, 2041, 6001, 8981, 7553, 1805, 917, 7611, c