In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['n', 7489, 'M', '5851', 'O', 'K', 'w', 'p', 'A', 'k', '3049', '8559', 'i', '305', 'N', '4781', '4841', 'D', '7297', '1473', 'd', 5087, 'E', 'd', 'U', 'k', 'j', 'q', 'L', 1287, 'D', 'w', 3855], ['i', 'q', 2835, 2537, 9989, 6283, 'T', 1833, 7999, 4365, 'M', '5851', 'O', 'K', 'w', 'p', 'A', 'k', '3049', '8559', 'i', '305', 'N', '4781', '4841', 'D', '7297', '1473', 'W', 4953, 6651, 'Q', 'b', 'S', 't', 'C', 'L', 1423, 2623, 'P', 'x', 'l', 'D', 3945, 'X', 'I']