Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['G', 3497, 6017, 'N', 't', 's', 4789, 'K', 'c', 'H', 3001, 377, 'b', '1267', 'm', '8691', '4131', '3741', 'J', 'u', '3763', '6429', '9851', '9667', '2665', '5305', 'G', '4291', 'd', 'N', '2899', '3417', '5747', 'C', 'H', '8423', '8591', '2959', '3537', 'R', 7521, 'Q', 'h', 'K', 43, 2925, 'e', 4209, 'U', 1723, 981, 7093, 'p', 7777, 6611, 'O', 'v'], ['P', 'Y', 'G', 'E', 'b', '1267', 'm', '8691', '4131', '3741', 'J', 'u', '3763', '6429', '9851', '9667', '2665', '5305', 'G', '4291', 'd', 'N', '2899', '3417', '5747', 'C', 'H', '8423', '8591', '2959', '3537', 't', 10001, 7997, 8481, 4333, 'l', 'b', 6915, 5063, 'P', 'c', 'j', 'w', 2293, 'E', 'g', 4335, 5111, 4319, 3247, 'y', 1369, 'W', 7537, 4587, 1593, 3171]
Output:
b, 1267, m, 8691, 4131, 3741, J, u, 3763, 6429, 9851, 9667, 2665, 5305, G, 4291, d, N, 2899, 3417, 5747, C, H, 8423, 8591, 2959, 3537