In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8783, 'U', 'd', 7961, 'c', 307, 1083, 4919, 'P', 'C', 8835, 'r', 2243, 1749, 1835, 'Q', 8193, 'K', '3157', '3341', '5633', '3435', '5363', 'M', '7719', 'F', '9629', '9623', '7217', 'g', 'Q', 'v', 'b', '5191', 'x', 'N', 'k', '2123', '5059', 'F', 'Y', 'j', 'X', 3143, 'Z', 'E', 'G', 5935, 'Z', 5421, 'S', 'N', 'V', 'S', 'A', 'l', 6001, 207, 'R', 2735, 6131, 'g', 'd', 'Z'], [751, 'm', 9491, 7751, 5985, '3157', '3341', '5633', '3435', '5363', 'M', '7719', 'F', '9629', '9623', '7217', 'g', 'Q', 'v', 'b', '5191', 'x', 'N', 'k', '2123', '5059', 'F', 'Y', 'L', 3643, 'J', 2095, 'h', 'x', 8461, 'd', 'p', 'n', 3889, 9015, 'y', 'g', 3499, 3077, 2795, 7903, 6415, 'M']