In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6339, 481, 8153, 1701, 8027, 7789, 823, 4143, '7867', '4543', 'h', 'D', '2007', '2585', 'U', '2323', '9017', '3839', 'o', 'j', 'V', '8783', 'P', 5597], [4905, 7131, 'A', 29, 'a', 1457, 7933, 'J', 3135, 'G', 1697, '7867', '4543', 'h', 'D', '2007', '2585', 'U', '2323', '9017', '3839', 'o', 'j', 'V', '8783', 'S', 9629, 'A', 'm', 8637, 'N', 'b', 'j', 'x', 641]