In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['V', 'X', 'P', '8561', '3355', 'Q', 'a', 's', 'L', '5007', 's', '1027', 'u', 'J', '553', 'D', 'n', 'H', '4301', 'N', 1303, 'b', 'S', 8565, 'J', 1501, 'Q', 5147, 7241, 'g', 'g', 'J', 'R', 1663], ['h', 'c', 'N', 7349, 'X', 'w', 'g', 7865, 4627, 'D', 'I', 4291, 'P', '8561', '3355', 'Q', 'a', 's', 'L', '5007', 's', '1027', 'u', 'J', '553', 'D', 'n', 'H', '4301', 'i', 5075, 2775, 8851]