Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['Z', 2025, 'G', 'Z', '535', '7607', '5421', '2919', '9181', '5301', '3635', 'i', '1419', 'E', '9813', 'E', '8933', '4625', 'b', 'e', '1885', 'w', '6143', '7571', '7041', 'W', 'V', 'B', 9025, 'a', 'z', 2925, 'K', 'm', 'g', 'D', 'Y', 'J', 'X', 8595, 7535], [3315, 'h', 'D', 3237, 4075, 't', 7701, 1731, 5981, 'o', 'R', 3855, 's', 8421, 'k', 'h', 7037, 'N', 'M', 'Z', '535', '7607', '5421', '2919', '9181', '5301', '3635', 'i', '1419', 'E', '9813', 'E', '8933', '4625', 'b', 'e', '1885', 'w', '6143', '7571', '7041', 'W', 'I', 'm', 'F', 's', 9105, 'F', 1167, 3111]
Output:
Z, 535, 7607, 5421, 2919, 9181, 5301, 3635, i, 1419, E, 9813, E, 8933, 4625, b, e, 1885, w, 6143, 7571, 7041, W