Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['f', 'v', 'q', 7177, 5927, 2407, 'C', 61, 'B', 9687, 2079, '3107', 'S', '553', '2113', 'g', '5031', 'U', 'm', '9357', 'g', 'v', '4209', 'G', '497', '5625', 'r', '5299', '4813', '2029', 'F', '9353', 'V', '6649', '3357', '1571', 'A', '4683', '5539', 'p', 'E', 'C', 'N', 253, 4113, 'k'], ['R', 3759, 6939, 6109, 7093, 'c', '3107', 'S', '553', '2113', 'g', '5031', 'U', 'm', '9357', 'g', 'v', '4209', 'G', '497', '5625', 'r', '5299', '4813', '2029', 'F', '9353', 'V', '6649', '3357', '1571', 'A', '4683', '5539', 'p', 'E', 'e', 2921, 3829, 's', 'Y', 'B', 687, 'G', 7873, 'J', 5273, 'm', 'o', 'V', 5851, 'a', 4201, 'B', 8541, 9143, 4341, 'g', 3831, 'i', 'l', 'D', 8979, 'q', 'a']
A:
3107, S, 553, 2113, g, 5031, U, m, 9357, g, v, 4209, G, 497, 5625, r, 5299, 4813, 2029, F, 9353, V, 6649, 3357, 1571, A, 4683, 5539, p, E