In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['A', 4561, 'u', 'D', 'N', 'Z', 'W', '2787', 'j', 'J', '3553', '6255', 'r', 'R', 'g', '1685', 'K', 'w', 4171, 7371, 'Y', 'T', 5267, 1573, 'o'], [3515, 't', 8971, 'K', 4829, 'M', 5475, '2787', 'j', 'J', '3553', '6255', 'r', 'R', 'g', '1685', 'K', 'c', 'r', 'O', 6123, 8861, 'u']