In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1029, 3367, 8391, 'P', '4753', 'n', 'E', 'm', 3049], ['X', 7511, 'b', 'P', '4753', 'n', 'a', 'k', 2449]