Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['y', 7427, 'f', '7603', '8827', 'B', '8995', 'z', 'n', '3219', 'B', 'B', '1845', '2315', '5873', '9969', 'L', '8877', 'd', 5389, 3049, 'S', 'e'], [4955, 'W', 113, 2755, 4815, 'g', 5695, 'f', '7603', '8827', 'B', '8995', 'z', 'n', '3219', 'B', 'B', '1845', '2315', '5873', '9969', 'L', '8877', 'Z', 'g', 'p', 'A', 'r']
A:
f, 7603, 8827, B, 8995, z, n, 3219, B, B, 1845, 2315, 5873, 9969, L, 8877