In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
One example: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Solution is here: 8297, b
Explanation: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].

Now, solve this: ['Z', 'W', 'C', 1995, 7971, 1867, 'p', 3245, 'q', 'a', 'B', 'r', '8499', '5295', 'E', 'b', '7505', 'l', 'D', 'S', '2675', 'J', 'U', '4521', '4847', '6589', '8223', '865', 'v', 'i', 'b', '7105', '8715', '4117', '3869', 'u', 'p', 'D', '4673', 'H', 7245, 'F', 'N', 8959, 'E', 7885, 'M', 'J', 'R'], [2397, 7039, 'F', 939, 1205, 7311, 5227, 'N', 4025, 'g', 'L', 1691, 2607, 'k', 'i', 'j', 'D', 8609, 7881, 9067, 4445, 'z', 'g', 'Y', 7735, '8499', '5295', 'E', 'b', '7505', 'l', 'D', 'S', '2675', 'J', 'U', '4521', '4847', '6589', '8223', '865', 'v', 'i', 'b', '7105', '8715', '4117', '3869', 'u', 'p', 'D', '4673', 'N', 3269, 9325]
Solution:
8499, 5295, E, b, 7505, l, D, S, 2675, J, U, 4521, 4847, 6589, 8223, 865, v, i, b, 7105, 8715, 4117, 3869, u, p, D, 4673