In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['U', 'M', 'O', 'Y', 'M', 3161, 1417, '6853', '8749', 'A', '8553', 'X', '1131', 'a', '8811', '5821', 'd', '6595', 'm', '3519', 'u', '1863', '1021', 'd', 'J', 'v', 'P', 9313, 1127, 'r', 6055, 993, 't', 7203, 9553, 'K', 289, 's'], [9039, 1081, 4099, 'P', 'X', 2771, 'K', 119, 'p', 'V', 'f', 'P', 'k', 'I', 1797, 'A', 'b', 7537, 997, '6853', '8749', 'A', '8553', 'X', '1131', 'a', '8811', '5821', 'd', '6595', 'm', '3519', 'u', '1863', '1021', 'd', 'J', 'v', 'b', 6689, 'X', 3969, 'q', 'r', 5883, 9599, 6103, 'R']