In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5981, 'M', 'A', 'D', 4637, 'A', 'U', 'h', 'P', '4669', 'Y', 'u', 'x', 'l', '2799', '6853', '2829', 'A', 'C', '9721', '2289', '3121', 'I', '8509', '7369', 'c', 'K', 8275, 'v'], ['a', 'v', 133, 1945, 'M', 7997, 2931, 'P', '4669', 'Y', 'u', 'x', 'l', '2799', '6853', '2829', 'A', 'C', '9721', '2289', '3121', 'I', '8509', '7369', 'c', 'r', 7561, 'Z', 'h', 'U', 3387, 'V', 6923, 'u', 8411, 6595, 281, 'y', 265, 8949, 6469, 'v', 869]