In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7487, 'T', 'q', 4689, 8215, 'o', 'l', 2957, 3039, '3367', '9077', 'i', 'V', 'a', 'g', 'E', 'K', 'V', '5755', '5749', '1589', '639', '2793', 'K', 8381, 'k', 8109, 6173, 6619, 1539, 7767, 'M'], [7787, 'B', 2691, 'z', 3385, 'n', '3367', '9077', 'i', 'V', 'a', 'g', 'E', 'K', 'V', '5755', '5749', '1589', '639', '2793', 'U', 'L', 7987, 'r', 'c']