In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8261, 4041, 'F', 'o', 8929, 'v', 6585, 'i', 'G', 6957, 4109, 8597, 6439, 'Z', 'X', '6005', '4289', '5325', '319', 'X', 'G', '2971', '7377', '7957', 'j', 'c', 'l', '1777', 'B', 4207, 's', 'a', 1657, 5239, 'D', 6997, 'A', 7643, 'L'], ['J', 'm', 5809, 'e', 'n', 'l', 2067, 4221, 'r', 's', 'X', '6005', '4289', '5325', '319', 'X', 'G', '2971', '7377', '7957', 'j', 'c', 'l', '1777', 'b', 9877, 'P', 'p', 'U', 1473, 'W', 6811, 7227, 'a', 7829, 7025, 'A']