In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7881, 't', 'Z', 'A', 'd', '5795', '9771', '7017', '457', 'w', '1781', '5065', '2465', '3873', '7073', 'Q', 'V', 'Y', 3337, 2443], ['Z', 'K', 3545, 'x', 'j', 177, 7371, 'x', 4965, 'f', 6147, 'd', '5795', '9771', '7017', '457', 'w', '1781', '5065', '2465', '3873', '7073', 'Q', 'V', 'y', 9831]