In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3561, 2249, 'Q', 'f', 6337, 4767, 'D', 6831, 'N', 843, 2593, 'K', 'V', 'v', 'c', 'N', 'L', 'r', '7525', '9951', '2597', '6781', 'M', 8757, 'W', 6121, 6229], ['H', 7795, 'K', 'V', 'v', 'c', 'N', 'L', 'r', '7525', '9951', '2597', '6781', 'r', 7275]