In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8877, 'e', 5431, 'm', 'q', 9167, 'S', 'a', 'U', '7115', '5369', '9799', 'k', 'o', 'N', '3559', 'S', 'W', 'U', 'G', 'k', '4033', 'F', 'v', 'J', 'o', 'P', '8795', 'I', '8611', 'R', 'o', 't', 'x', 'F', 'L', 2147, 'N', 2903, 'P', 2975, 'H', 'v', 'N', 'l', 6057], [8471, 'k', 'X', 3571, 'R', 7513, 5417, 8123, 5791, '7115', '5369', '9799', 'k', 'o', 'N', '3559', 'S', 'W', 'U', 'G', 'k', '4033', 'F', 'v', 'J', 'o', 'P', '8795', 'I', '8611', 'R', 'o', 't', 'E', 'Y', 7307, 8307, 9479, 'c', 'y', 9815, 2007, 6779, 'i', 2877, 'v', 6767]