In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8789, 'G', 'G', 4609, '455', '3107', '4897', 'k', '5305', '2765', '2925', '4995', '9009', 'D', 'L', 'f', 'N', 'q', 'l'], ['D', 7271, 829, 'i', 'B', '455', '3107', '4897', 'k', '5305', '2765', '2925', '4995', '9009', 'D', 'L', 'f', 'N', 'F', 5967, 'X', 4813]