In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 'P', 'E', 'j', 'N', '1875', '979', 'e', '6629', '7669', '3843', 'e', '8535', '843', 'Y', 'T', '5607', 'L', '8537', 'Z', '1179', '4953', 'b', 'E', 1789, 'L', 827, 9337, 8785, 881, 'X', 'K', 9639, 'A', 4531], ['r', 4373, 'P', 8895, 'g', 6969, 7075, 3807, 't', 'J', 8863, 't', 2809, 317, 'd', '1875', '979', 'e', '6629', '7669', '3843', 'e', '8535', '843', 'Y', 'T', '5607', 'L', '8537', 'Z', '1179', '4953', 'b', 'z', 4621, 1383, 9119, 5185, 'm', 5885, 2059, 4693, 5623]