In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Example: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Example solution: 8297, b
Example 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'].

Problem: ['S', 1877, 9023, 2669, 9011, 9097, 'Y', 167, 4649, 5213, 1877, 'P', 'e', '587', '9709', '5407', '1011', 'F', '6097', '4751', 'd', 'N', 'L', 'I', 'q', 'B', 'L', 'u', 'D', 'c', 'y', 'b', 'R', 'T', 'L', 'K', '3165', '2715', 'z', '1009', 'p', 'i', 'E', 'd', 6087, 'S', 'X', 9199, 79, 8049, 8737, 'j', 3323, 1235], ['k', 2415, 'K', 4107, 's', 521, 8289, 5167, 7107, '587', '9709', '5407', '1011', 'F', '6097', '4751', 'd', 'N', 'L', 'I', 'q', 'B', 'L', 'u', 'D', 'c', 'y', 'b', 'R', 'T', 'L', 'K', '3165', '2715', 'z', '1009', 'S', 'D', 'p', 663, 4889, 1547, 'Z', 'P', 'M', 9493]
Solution: 587, 9709, 5407, 1011, F, 6097, 4751, d, N, L, I, q, B, L, u, D, c, y, b, R, T, L, K, 3165, 2715, z, 1009