In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7471, 'h', 'Y', '2021', 'z', '6455', 'F', '2713', 'k', 'k', '8287', 'N', 'W', 'n', 3979, 2297], ['q', 6267, 'D', 'K', 'r', 9141, 3189, 'n', 'j', 'Y', '2021', 'z', '6455', 'F', '2713', 'k', 'k', '8287', 'N', 'a', 5035, 9105, 5811]