In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6187, 'I', 3131, 'O', 'e', 7101, 't', 8039, 'M', 4375, 'E', 'a', 'R', '9071', '5849', 'c', '687', 'Z', 'f', '1559', 'f', 'Z', '7073', '2463', 'S', 'j', 'L', '525', 'g', 'D', 'Z', '4499', 'H', '8599', '8409', 'g', 5471, 'p', 'U', 'I', 7847, 3529, 'd', 6841, 'x', 9545, 4243, 7671, 'N', 'W'], ['p', 5809, 5859, 8853, 627, 'q', 3259, 1143, 'q', 'E', 'a', 'R', '9071', '5849', 'c', '687', 'Z', 'f', '1559', 'f', 'Z', '7073', '2463', 'S', 'j', 'L', '525', 'g', 'D', 'Z', '4499', 'H', '8599', '8409', 'e', 5767, 'i', 'E']