In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5859, 'v', 'Q', 'v', 479, 711, 133, 'M', 4753, 4463, 8827, 'X', 'c', '7205', 'l', '9277', '6135', 'Y', '1311', '9823', '9639', '4057', 'N', '1381', 'r', 'p', 'l', 'i', 'z', 6807, 'M'], [6775, 'C', 'K', 'x', 369, 8377, 683, 'u', 'P', 3405, 'A', 'B', 'T', 5527, 'Q', 'X', 'c', '7205', 'l', '9277', '6135', 'Y', '1311', '9823', '9639', '4057', 'N', '1381', 'r', 'p', 'J', 4663, 271, 7515]