In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5185, 'L', 3893, 'E', 1659, 'd', 'l', 5995, 1909, 'i', 5089, 'e', 3819, 'i', 7053, 1647, 'q', 'U', 5063, 1059, '5835', '1031', 'Z', 'i', '4889', '1351', 'P', '7777', 'J', '2041', 'Z', 'I', '4005', '643', 'T', 'M', '7451', 'D', '7189', '6009', '4667', '7479', 'e', 'a', '1113', 'V', 'u', 'P', 'n', 2195, 7973, 'B', 'K', 6527, 3731, 'g', 'H', 3951, 3827, 1659, 1243, 'g', 'L', 'I'], [9867, 1297, 'f', 'o', 't', '5835', '1031', 'Z', 'i', '4889', '1351', 'P', '7777', 'J', '2041', 'Z', 'I', '4005', '643', 'T', 'M', '7451', 'D', '7189', '6009', '4667', '7479', 'e', 'a', '1113', 'V', 'd', 9889, 'Z', 9349]