In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4113, 3583, 'p', 445, '1187', 'T', '2045', '8337', 'g', 'b', 'S', 2595, 5089, 3875, 7559, 'I'], [8427, 'P', '1187', 'T', '2045', '8337', 'g', 'b', 'd', 'k', 1843, 'f', 'g', 'c']