Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['h', 'D', 7325, 'X', 9523, 1, 'H', 'R', 8929, 2635, 'A', 'z', 8739, 'C', '5635', 'd', '8895', '389', '5587', 'C', '4235', '9955', 'a', '3207', '5179', '9645', 'y', 'f', 'y', 's', 6873, 7825, 'T'], [2095, 9685, 'e', 3185, 9311, 'd', 'V', 'C', '5635', 'd', '8895', '389', '5587', 'C', '4235', '9955', 'a', '3207', '5179', '9645', 'b', 'S']
Output:
C, 5635, d, 8895, 389, 5587, C, 4235, 9955, a, 3207, 5179, 9645