In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[865, 4499, 'r', 'O', 4025, 5249, 9867, 'O', 2025, 1023, 9189, 'S', 'Q', 5331, 'm', 7337, 'B', 6937, 7583, 'o', 8699, 8305, 9597, 'r', 'r', 8213, 7893, 7141, 7449, 'P', '7239', '4295', '9503', 'x', 'z', 'h', '6489', 'U', 'M', '2129', '3813', 'f', 'v', '5811', '5409', 'K', '2183', 'm', '7329', 'u', '1895', 'b', '5159', '3021', '2945', '1379', 'R', 'k', '311', 'P', 'S', 'K', 5661, 4351, 4195, 8149, 2705], [6305, 'V', 'o', 4749, 6933, 3931, 6023, 'z', 'K', 'v', 1363, 'B', 'P', '7239', '4295', '9503', 'x', 'z', 'h', '6489', 'U', 'M', '2129', '3813', 'f', 'v', '5811', '5409', 'K', '2183', 'm', '7329', 'u', '1895', 'b', '5159', '3021', '2945', '1379', 'R', 'k', '311', 'T', 'i', 3163, 9369, 3089, 't', 1569, 4501, 9953, 'g', 'u', 5765, 'R', 1767, 'b', 6471, 5435, 7113, 273, 'M', 'K', 'c', 9399, 7049, 7123, 5013, 4341, 'M', 2285, 9527]