In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['p', 8747, 5029, 'I', 'f', '1119', 'S', '1475', 'n', '581', 'c', 'n', 'I', 'U', 'r', '1217', 'l', '5015', 'A', '9437', '8745', 'd', 'X', 'w', '5827', '3527', '9839', '5855', '3583', '1367', '2067', 'j', 4181, 'X', 765, 2177, 4959, 'Q', 3747, 'y', 'G', 8713, 'g', 'B', 2463, 'x', 'X', 1395, 'T', 'c', 2739, 8195, 5527, 5731, 'H'], [3043, 'V', 'p', 'R', 'I', 'f', '1119', 'S', '1475', 'n', '581', 'c', 'n', 'I', 'U', 'r', '1217', 'l', '5015', 'A', '9437', '8745', 'd', 'X', 'w', '5827', '3527', '9839', '5855', '3583', '1367', '2067', 'H', 'H', 'v', 6537, 8731, 4257, 'E', 'B', 2729, 'v', 9145, 'Z', 'C', 1475, 5753]