In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['F', 'g', 'c', 2935, 1677, 8371, 1701, 'L', 't', 'Y', '8531', '5949', 'f', 'k', '9183', '2561', 'B', 'Q', 's', 'T', '5871', '1021', 'M', 'u', 'z', '1339', '2063', '5921', '3525', '77', 'S', '2423', 'm', 4913, 'N', 9029, 2141, 3745], ['Y', 2355, 9997, 'W', 5743, 'Y', '8531', '5949', 'f', 'k', '9183', '2561', 'B', 'Q', 's', 'T', '5871', '1021', 'M', 'u', 'z', '1339', '2063', '5921', '3525', '77', 'S', '2423', 'u', 'E', 'Q', 1039, 'I', 'D', 'X']