In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9729, 'J', 'Q', 7499, 'V', 'x', '9677', '3421', 'N', 'e', 'P', '8027', 'e', 'O', 'f', 'B', 'C', 'C', 3691, 9267, 'Y', 'w', 8727, 8959, 'M', 'B'], [4927, 'F', 2007, 'N', 'x', '9677', '3421', 'N', 'e', 'P', '8027', 'e', 'O', 'f', 'B', 'C', 'p', 'h', 6631]