In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5181, 'F', 9107, 'D', 'o', 'E', 'A', 5459, 2075, '4883', '9281', '2779', 'G', '3957', 'n', '2605', 'c', '7219', 'o', 'g', 1585, 9889, 's', 919], [6883, 'Z', 9927, '4883', '9281', '2779', 'G', '3957', 'n', '2605', 'c', '7219', 'o', 'f', 7287, 'c']