In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['O', 8563, 'e', 'H', 3297, '8979', '4469', 'A', 'P', 'x', '5547', '7223', 'T', '3891', 'p', 'q', 4171, 1319, 'O'], [1827, 9807, 'Y', 1647, 'h', '8979', '4469', 'A', 'P', 'x', '5547', '7223', 'T', '3891', 'p', 'T', 5331, 'i', 8667, 8735, 'p', 5419, 'e', 8949, 8139]