Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: [5041, 9743, 'A', 'K', 9599, 'b', 'i', 'n', 'd', '6635', '4925', '5817', '8357', '4261', '6821', '7837', '5711', 'L', 'n', '1303', '9157', 'y', '2655', 'a', 'm', 'Q', 'U', 9793, 39, 8081, 'w', 4241, 'L', 39, 5319, 2837, 'D', 8109, 2819, 'x', 3065], ['a', 8511, 'z', 8739, 7675, 2715, 'N', 'J', 'l', 'n', 'd', '6635', '4925', '5817', '8357', '4261', '6821', '7837', '5711', 'L', 'n', '1303', '9157', 'y', '2655', 'a', 'm', 'l', 9759, 4747]
A:
n, d, 6635, 4925, 5817, 8357, 4261, 6821, 7837, 5711, L, n, 1303, 9157, y, 2655, a, m