Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['l', 'F', 'U', '6103', '5955', 'H', '8989', '2851', '693', 'j', '1153', '8385', 'C', '3133', 'u', '3327', '7123', '6911', 'K', '1039', '9147', '195', '4363', '5617', 'X', '7635', '3989', 'B', 639, 'X', 'a', 1795, 5079, 8993, 'r', 8521, 695, 5619, 'V', 's', 6793], [6223, 'u', 6309, 'f', 'I', 'o', 4195, 9583, 2995, 8887, 5193, 5241, 9697, 9959, 'u', 'n', 8931, '6103', '5955', 'H', '8989', '2851', '693', 'j', '1153', '8385', 'C', '3133', 'u', '3327', '7123', '6911', 'K', '1039', '9147', '195', '4363', '5617', 'X', '7635', '3989', 'X', 4665, 'j', 5327, 'X', 'L', 'h', 'Y', 5281, 3909, 4483]
Output:
6103, 5955, H, 8989, 2851, 693, j, 1153, 8385, C, 3133, u, 3327, 7123, 6911, K, 1039, 9147, 195, 4363, 5617, X, 7635, 3989