In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[399, 'T', 'B', 6001, 'X', 6097, 'L', '5475', 'P', 'm', '9713', '7623', '2269', 'J', '7129', 'V', 'C', '7745', 'q', '3277', 'N', 'f', 'E', 'N', 4637, 'C', 'N', 'F', 'i', 909, 'v', 'I', 8877, 'o'], ['Y', 'p', 'k', 'L', '5475', 'P', 'm', '9713', '7623', '2269', 'J', '7129', 'V', 'C', '7745', 'q', '3277', 'c', 467, 'H']