In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['G', 1259, 'N', 'u', 'p', '8773', 'L', 'k', 'd', 's', 'U', 1709, 'E', 3165, 'q'], ['q', 8777, 'R', 'I', 365, 4917, 'p', '8773', 'L', 'k', 'd', 's', 'H', 5313, 6781]