In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[887, 'y', 'T', '1331', '8837', 'N', 'i', 'r', 'W', '2765', '2529', 'Y', 'P', 'F', 'U', 'Z', '5517', 'b', 't', 'g', 'P', 'H', 4259], [505, 'r', 'o', 9817, 'j', 9877, 9229, 'F', 'D', 4703, 'T', '1331', '8837', 'N', 'i', 'r', 'W', '2765', '2529', 'Y', 'P', 'F', 'U', 'Z', '5517', 'u', 6205, 6679, 'U', 7321, 8059, 1877, 4967, 9325, 'B', 'c']