In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7449, 'n', 3107, 'T', '1391', '6153', 'X', 'S', '3013', 'o', 'h', 165, 9501], [5471, 1115, 4137, 'r', 2825, '1391', '6153', 'X', 'S', '3013', 'f', 8903, 5509]