In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7983, 8439, 'Y', 'q', 2991, 'a', '1071', '3403', '1785', '1087', '3525', 'o', 'Q', 'S', '8369', '6415', 'M', 'i', 6109, 8415, 7855, 'e', 'H', 6515], ['b', 6573, 'C', 'B', 'P', 9863, 9045, 6657, 9513, 'a', '1071', '3403', '1785', '1087', '3525', 'o', 'Q', 'S', '8369', '6415', 'K', 'C']