In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['p', 9967, 4691, 'R', 8703, 9923, 'n', '2217', 'I', '1379', 'h', 'Z', '1111', '3009', 's', '1223', '9265', 'i', '1801', '3883', 'n', 1167, 'x', 'c', 'g', 'L', 'S', 'l'], [5107, 8941, 8953, 'm', 'N', 'Q', 'p', 6755, 831, 1451, 'r', 6895, 'n', '2217', 'I', '1379', 'h', 'Z', '1111', '3009', 's', '1223', '9265', 'i', '1801', '3883', 'R', 'm', 'n', 'A', 4083, 't', 'n', 'F', 8539, 'J', 5445]