Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['I', 'i', '5497', '5611', '125', '1043', '8787', '7839', 'q', '2041', 'W', '9575', 'A', 'M', 'W', '8287', '9743', 'Y', 9479, 'y', 7679, 3915, 'l'], [3765, 'l', 't', '5497', '5611', '125', '1043', '8787', '7839', 'q', '2041', 'W', '9575', 'A', 'M', 'W', '8287', '9743', 'n', 'Q', 'm', 'd', 7353, 'D', 9027, 7273, 7451, 1089, 'w', 1459, 7441, 8103]
Output:
5497, 5611, 125, 1043, 8787, 7839, q, 2041, W, 9575, A, M, W, 8287, 9743