Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: [2777, 'l', 'G', 6135, '3419', 'u', 'j', '3941', 'H', '6115', 'd', '2601', 'v', '4199', 'G', 'x', 'Z', '5147', '2457', 'T', 'V', 'L', '1231', 'h', 'L', 3677, 't', 9149, 9799, 'N', 6503, 3985, 3261, 'Q', 8495], [657, 'p', 'X', 'X', 883, 4061, 'z', 8435, 'x', '3419', 'u', 'j', '3941', 'H', '6115', 'd', '2601', 'v', '4199', 'G', 'x', 'Z', '5147', '2457', 'T', 'V', 'L', '1231', 'U', 'k', 4725, 'y', 'J', 'h', 7903, 'T', 3699, 8161, 'E']
A:
3419, u, j, 3941, H, 6115, d, 2601, v, 4199, G, x, Z, 5147, 2457, T, V, L, 1231