Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [7995, 487, 6515, 2625, 291, 'p', 'o', 'b', '4853', 'h', '801', 'z', 's', 'r', 'M', 'm', 'z', '8333', '7011', '5431', 't', 6931, 'C', 2085, 'V', 'F', 'D'], ['j', 't', 8535, 2303, 9171, 'M', 'M', 'S', 6777, '4853', 'h', '801', 'z', 's', 'r', 'M', 'm', 'z', '8333', '7011', '5431', 'D', 'g', 'd', 'P', 3781, 6731, 'm', 'S', 1167]
Output:
4853, h, 801, z, s, r, M, m, z, 8333, 7011, 5431