In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['G', 'T', 'A', 2675, 'Q', 'o', 'D', '7941', '6649', '5781', 'Z', 'a', 'Q', 'W', '9781', 'X', '7977', 'T', 'I', '887', 'D', '3271', 'w', '9507', 'f', 'U'], ['K', 6373, 'y', 5461, '7941', '6649', '5781', 'Z', 'a', 'Q', 'W', '9781', 'X', '7977', 'T', 'I', '887', 'D', '3271', 'w', '9507', 'V', 'x', 't', 5889, 'n', 'J', 'r', 'p']