In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['R', 1021, 5083, 'F', 8749, 'G', 'A', 9719, 3811, 'F', 6629, 'R', 8441, 'G', 3227, 4625, 'Y', 2265, 'N', 'i', '8847', 'c', '577', '9615', '3457', '7035', '2761', 'L', '6431', 'G', '7291', '1757', '1167', 'm', 'z', '4977', '3975', '5495', '3729', 'Z', 1757], [4341, 'x', 5175, 3777, 3853, 247, 'l', 1969, 'u', 3975, 1367, 'N', 'i', '8847', 'c', '577', '9615', '3457', '7035', '2761', 'L', '6431', 'G', '7291', '1757', '1167', 'm', 'z', '4977', '3975', '5495', '3729', 'v', 3275, 325, 7965, 'n', 6123, 8291, 2371, 2011, 1643, 2603, 'V', 5893, 2695]
A: 
N, i, 8847, c, 577, 9615, 3457, 7035, 2761, L, 6431, G, 7291, 1757, 1167, m, z, 4977, 3975, 5495, 3729