In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1823, 'E', 'f', '4727', '643', 'N', 'G', 'W', 'W', 'c', 'l', 'o', 1627], ['X', 'M', 'U', 't', 'x', '4727', '643', 'N', 'G', 'W', 'W', 'D', 'g']