Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['b', 167, 'Q', 1529, 6083, 9697, '8849', 'Q', 'q', 'p', 'U', '7963', 'T', '889', 'r', 'D', '2603', 'x', 'W', '1863', '7111', '7891', 'C', 'K', '8445', 'V', '323', '71', '5423', '4013', 'k', 'N', '8379', 'o', 9443, 'l', 'w', 4927, 'Z', 'b', 3571, 255, 5095, 7725, 6401, 'n', 'x', 'H', 7343, 'F', 6041, 'f', 'R', 'i'], ['W', 'a', 5759, 'h', 'D', 489, 8263, 6009, 'K', 'f', 'C', 'v', 'D', 'N', 'A', 'c', 5687, 6709, 'v', 'U', 'K', 'O', '8849', 'Q', 'q', 'p', 'U', '7963', 'T', '889', 'r', 'D', '2603', 'x', 'W', '1863', '7111', '7891', 'C', 'K', '8445', 'V', '323', '71', '5423', '4013', 'k', 'N', '8379', 'k', 'v', 5591, 'H', 5857, 't', 'S', 4245, 'M', 'f', 'n', 9315, 7763, 3669, 5623, 2003, 9219, 6589]
Output:
8849, Q, q, p, U, 7963, T, 889, r, D, 2603, x, W, 1863, 7111, 7891, C, K, 8445, V, 323, 71, 5423, 4013, k, N, 8379