In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3395, 'i', 8049, '6977', '9615', 'Y', 'S', 'W', '8567', '8399', 'Z', '4011', '4991', 'G', 'V', '5919', '8363', 'X', 'k', 5713, 'c', 'm', 'M'], [8629, 2753, 'J', 6609, 4097, 'U', '6977', '9615', 'Y', 'S', 'W', '8567', '8399', 'Z', '4011', '4991', 'G', 'V', '5919', '8363', 'q', 'o', 'm', 'u', 3251, 9567, 'Z', 'g', 163, 'L', 'p', 7037]