In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['c', 6545, 'A', 8559, 3599, 8091, 'A', 1139, 'M', 7079, 8947, 5975, '8157', 'N', 'Z', '5853', '7369', '1631', '5103', '3651', '8007', 'n', '9043', '6555', 'Z', 'I', 501, 9271, 6881, 'i', 7909, 1867, 'g'], [3941, 'P', 7997, 'b', 4951, '8157', 'N', 'Z', '5853', '7369', '1631', '5103', '3651', '8007', 'n', '9043', '6555', 'Z', 'E', 5835, 3529]