In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9631, 'x', 'c', 'D', 9997, 'i', 1745, 8487, 'l', 223, 'v', 'U', 2557, 's', 8449, 'N', 8433, 'r', 1251, 'H', '9523', '6603', '5603', 't', '5083', 'n', '9553', '6519', 'u', '4763', 'u', 'O', 'K', '4075', 'A', '1149', 'i', '977', 'v', '3923', '1545', 'k', 'f'], ['f', 407, 'w', 8645, '9523', '6603', '5603', 't', '5083', 'n', '9553', '6519', 'u', '4763', 'u', 'O', 'K', '4075', 'A', '1149', 'i', '977', 'v', '3923', '1545', 'O', 2909, 'g', 'v', 2013, 'n', 'x', 'M', 'w', 3305]