In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5895, 4727, 7037, 9897, 'D', 4877, 3937, 3315, 'r', 'v', '85', 'o', 'H', 'G', '6767', '7173', '2419', '9589', '7509', '3503', '6465', '5033', 'd', '1193', '6197', 'C', '241', '7297', 'g', '1131', 'U', 'P', 'L', 'd', '3431', 'x', '1897', 'E', 'i', 'd', 'Z', 'F', 'H', 'r', 'J', 'A'], [3, 1081, 'T', 5353, 'P', 'J', 7221, 'i', 'G', 9677, 6985, 5553, 1761, 5587, 'a', 'v', 'T', 6481, 'p', 'v', '85', 'o', 'H', 'G', '6767', '7173', '2419', '9589', '7509', '3503', '6465', '5033', 'd', '1193', '6197', 'C', '241', '7297', 'g', '1131', 'U', 'P', 'L', 'd', '3431', 'x', '1897', 'j', 'R', 9245, 'P', 'n', 8921, 975, 8529, 'l', 8927, 5241, 'K', 'p', 9291, 5303, 'A', 'W', 8433, 2075, 5841, 'M', 'y', 2347, 'V']