In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2365, 49, 79, 'U', 6165, 'Z', 'K', '8151', 'o', '8361', 'G', '7531', '7939', '6881', 'K', 't', '2825', '4597', 'k', '10031', '1601', '5823', 'd', '9207', 'W', 'i', 8097, 'N', 707, 'G', 6629, 'F', 6409], ['w', 's', 2617, 1863, 8131, 9065, 1457, 'A', 9085, 'e', 'C', 4723, 'A', 9457, 2017, 'R', '8151', 'o', '8361', 'G', '7531', '7939', '6881', 'K', 't', '2825', '4597', 'k', '10031', '1601', '5823', 'd', '9207', 'W', 'p', 9193, 8631, 'f', 'P', 'R', 'B', 'A', 'k', 9815, 'Z', 6515, 2573]