Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [2973, 7295, 1537, '5919', '5179', '2415', '6407', '2573', '4017', '9759', '751', 's', 'N', '9751', 'z', '8297', '2469', 'D', 'r'], [501, 'x', 2765, 359, 6193, 'Y', 7799, '5919', '5179', '2415', '6407', '2573', '4017', '9759', '751', 's', 'N', '9751', 'z', '8297', '2469', 'R', 3753, 1157, 'b', 'C', 9927, 'I', 8175, 'o', 'N', 'W', 2979, 8389]
Output:
5919, 5179, 2415, 6407, 2573, 4017, 9759, 751, s, N, 9751, z, 8297, 2469