In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['i', 8119, 8715, 'L', 5657, 1003, 6087, 'B', 'p', 7845, 'L', 'Y', 'G', '5579', 'k', 'c', 'f', 'n', 'u', 'd', '3547', '245', '8531', 'J', '1079', 'b', '51', 'd', 'e', 2955, 'k', 5693, 'h', 'X'], [6457, 'w', 'S', 7299, 'E', 8143, 8301, 8695, 1027, 3721, 6461, 'u', 'Y', 'G', '5579', 'k', 'c', 'f', 'n', 'u', 'd', '3547', '245', '8531', 'J', '1079', 'b', '51', 'd', 'V', 3211, 8721, 'S', 'M', 'k', 5963, 2291, 'm', 7029, 5953, 'u', 'r']