In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['b', 'P', 'X', 5241, 1263, 9987, 'i', 'O', 'O', '5801', 'k', 'N', '5987', 'P', 'T', '3111', '5179', '9103', '4197', 'W', 'C', 5327, 'J', 4041, 5005, 'D'], [1107, 'Y', 'c', 'V', 2227, 'c', 'U', 'i', 'O', 'O', '5801', 'k', 'N', '5987', 'P', 'T', '3111', '5179', '9103', '4197', 'W', 'S', 3999, 243, 523, 9401, 'G']