In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['Y', 'b', 7651, 165, 'v', 3073, 'j', 'r', 937, 5407, 8543, 'U', 2045, 959, 'W', 'L', 'l', '9785', 'Q', '1315', '6159', 'B', 'w', '5435', '5657', '1451', 'P', 'm', 'J', '753', '5881', '8233', 'n', '469', '9617', 'Z', 3485, 7433, 'N', 'E', 2685], ['Y', 'u', 987, 'A', 177, 2741, 'C', 6955, 'c', 3115, 7003, 'G', 'I', '9785', 'Q', '1315', '6159', 'B', 'w', '5435', '5657', '1451', 'P', 'm', 'J', '753', '5881', '8233', 'n', '469', '9617', 'L', 'k', 3959, 'J', 'n', 'l', 'x', 'o', 6637, 6433, 'r', 'b', 6097, 'Y', 2169, 4251]
A:
9785, Q, 1315, 6159, B, w, 5435, 5657, 1451, P, m, J, 753, 5881, 8233, n, 469, 9617