In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['n', 'P', 8517, 2073, 297, 'g', 'I', 9011, 'E', 'i', 'V', '823', '6553', 'p', 'n', '1597', '9713', '2705', 'P', '1035', 'd', '457', '3527', '8217', 'R', 'Z', '3349', 'n', 'U', '11', 'j', 'z', 'z', 'P', 363, 'p', 's', 'v', 'Q'], ['B', 'Q', 'm', 'g', 7781, 9327, 3389, 3543, 2797, 'c', 7261, 9035, 2495, 5083, '823', '6553', 'p', 'n', '1597', '9713', '2705', 'P', '1035', 'd', '457', '3527', '8217', 'R', 'Z', '3349', 'n', 'U', '11', 'q', 5425, 771, 1617, 'r', 5223, 'r', 7999, 'W', 'Q', 'n', 'l', 4655, 'm', 'E', 5285, 5961]