In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[271, 3279, 885, 3449, 'd', 'p', 'y', 4091, 'Z', 'w', 7867, 'N', '5329', '4939', 'I', '5319', '3573', 'e', 'y', 'T', '7101', '4377', 'C', '5335', '2257', 'y', 'Y', '5891', '8975', '4293', 'h', 'l', 'k', 'x', 199, 's', 'E', 8031, 9765, 'k', 943, 'j', 'b', 'i', 'j', 6479, 'g', 'N', 'i', 2921, 8749, 4679, 6003, 8661], [1107, 4977, 'h', 2341, 'e', 7483, 987, 'c', 'r', 'S', '5329', '4939', 'I', '5319', '3573', 'e', 'y', 'T', '7101', '4377', 'C', '5335', '2257', 'y', 'Y', '5891', '8975', '4293', 'h', 'l', 'k', 'e', 'J', 8981, 8089, 'R', 4309, 5783, 6007, 'D', 3557, 9657, 'f', 5629, 1997, 471, 3275, 257, 8307, 2353, 147]