In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4415, 843, 5487, 'p', 'S', 'y', 8471, 'q', 'q', 6559, 'k', 7929, 8543, '3297', 'e', '9943', 'W', 'X', '4913', 'X', 'w', '7401', 'F', '3495', 'g', 'y', 'P', 'Q', '3863', '8719', '9479', '5449', 'x', 'Y', 'n', '6857', 'e', 3673], ['q', 'B', '3297', 'e', '9943', 'W', 'X', '4913', 'X', 'w', '7401', 'F', '3495', 'g', 'y', 'P', 'Q', '3863', '8719', '9479', '5449', 'x', 'Y', 'n', '6857', 'h', 4811, 2245, 3187, 6893, 'o', 3495, 's', 9153, 5487]