In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[265, 'u', 9487, 'j', '109', '7453', 'L', 'n', '1029', '6783', 'U', 305, 'P', 6371, 'w'], [3137, 'Q', 'y', 'H', '109', '7453', 'L', 'n', '1029', '6783', 'e', 6803, 1457]