In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5167, 7869, 'L', 'M', 7945, 4783, 'B', 's', 327, 'Z', 8643, 'y', 5037, 'w', 2157, 'U', 'S', 's', 's', 215, 'e', 8083, 'C', 'z', 'o', '5477', 'R', 's', '625', 'P', 'q', '5277', '2783', '8815', 'f', 'U', 'C', '7559', 'k', '8201', 'z', 'X', '8501', '3913', '9795', '3417', 'U', 'w', '2415', 'H', 'C', 9047, 389, 'u', 's'], [6005, 9179, 1033, 'B', 'q', 'u', 'h', 5527, 9057, 9105, 1805, 'g', 'K', 'H', 'M', 'T', 7651, 1409, 4767, 'm', 'k', 'T', 'B', 'C', '5477', 'R', 's', '625', 'P', 'q', '5277', '2783', '8815', 'f', 'U', 'C', '7559', 'k', '8201', 'z', 'X', '8501', '3913', '9795', '3417', 'U', 'w', '2415', 'H', 'm', 'Y', 6387, 1947, 'g', 1129, 8089, 8357, 'e', 151]