In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7981, 'J', 3305, 1799, 'b', 8615, 9249, 7917, 'Y', 8223, 9295, 'p', 9513, 977, 1315, 'x', 'y', 1161, 8913, 'K', 'k', 'Q', 9321, 3289, 'x', 7997, '2861', 'I', '241', '1601', '103', '5627', '7853', 'J', '6251', 'V', 'y', '1775', '1473', '2895', 'C', '4431', '619', '6055', 'N', 'j', 'F', 'S', '8653', '7081', 'b', '1651', 'X', 'z', 'F', 'g', 9391, 'g', 2809, 2291, 'e', 5477, 'y', 5119, 'S', 7897, 'm', 5539, 'L', 3301, 'u', 'e', 'i', 'j', 'P', 'a', 9977, 'N'], ['L', 2655, 'A', 9181, 'f', 5947, 'D', 2669, 'g', 'p', 6583, 6463, '2861', 'I', '241', '1601', '103', '5627', '7853', 'J', '6251', 'V', 'y', '1775', '1473', '2895', 'C', '4431', '619', '6055', 'N', 'j', 'F', 'S', '8653', '7081', 'b', '1651', 'X', 'z', 'm', 'K', 6915, 5613, 'e']