In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7841, 'd', 9005, 8655, 'q', 8449, 3493, 'd', 'P', 'S', 'p', 8951, 'u', 661, 7287, 'W', '5333', 'h', 'm', '261', '4937', '5979', 'i', 'P', 'n', '1705', '5309', 'j', 'M', 'm', 'P', 'J', '5017', 'C', 'q', '1861', 's', 'p', 4953, 'p', 's', 6247, 'B', 4559, 9265, 'a', 'x', 'N', 'I'], ['w', 4571, 'e', 'i', 8367, 'S', 'v', 'm', 'G', 'X', 8073, 677, 7379, 'o', 'i', 'I', 'd', 'W', '5333', 'h', 'm', '261', '4937', '5979', 'i', 'P', 'n', '1705', '5309', 'j', 'M', 'm', 'P', 'J', '5017', 'C', 'q', '1861', 's', 'j', 'h', 7721, 'B', 1487, 'x', 6041, 3111, 7729, 6109, 8477]