In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5021, 9197, 1913, 'u', 'J', '9981', 'c', 'c', '303', 'l', '3869', '5709', '361', 'c', '1543', 'j', 'r', 'k', 'v', 8409, 'T', 9867, 'E', 'N', 837, 9015, 5769, 9463, 'B', 2915, 9553], [5851, 'u', 1025, 6029, 3239, 6665, 3481, 'P', 8287, 'm', '9981', 'c', 'c', '303', 'l', '3869', '5709', '361', 'c', '1543', 'j', 'r', 'k', 'Y', 1117, 'u', 5791, 1791, 't', 'K', 1623, 'o', 7995, 'c', 2221, 'T']