In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6007, 8581, 'm', 'm', 'W', '2221', 'k', 'L', 'r', '6059', 'M', '5775', 'z', '809', '533', '7959', '3821', 'N', 5111, 5977, 'a', 3187, 2693, 'N', 'g', 'o', 4875, 'B'], [8753, 'D', 'n', 6219, 7787, 'W', '2221', 'k', 'L', 'r', '6059', 'M', '5775', 'z', '809', '533', '7959', '3821', 'Q', 'D', 'y', 4113, 'Y', 'i', 'h', 'J']