In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['T', 1991, 4829, 5995, '5159', '9885', '9819', 'b', '9117', 'c', '4771', 'D', 'K', 1299, 6535, 'X', 'j', 3577], ['p', 'M', 'd', 917, 1519, '5159', '9885', '9819', 'b', '9117', 'c', '4771', 'e', 39, 'P']