In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9509, 831, 'r', 'C', '8605', '9047', '4259', 't', '3729', '3883', '5549', 'e', '1823', '4097', 'n', '3745', 's', '1027', '5107', '8745', 'd', 6015, 8445, 835], [1727, 'W', 4589, 'q', 5673, 'T', 'a', 9975, 'B', 'r', 'C', '8605', '9047', '4259', 't', '3729', '3883', '5549', 'e', '1823', '4097', 'n', '3745', 's', '1027', '5107', '8745', 'r', 9467, 1587, 8003, 9117, 'X', 2843, 3719, 'g', 559, 7551, 'I', 'm', 7495, 2247]