In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['f', 5639, 'D', 6629, 9685, 'V', 'p', 7497, 'A', 'w', 'g', 1151, 'm', '8243', 'L', '7013', 'q', 'B', 'V', 'g', '9477', '765', '4023', 'U', '4195', 'd', 'L', 'R', 't', 7471, 'Z', 1377, 'a'], [8225, 5271, 'A', 3401, 565, 'l', 1033, 'm', 'm', '8243', 'L', '7013', 'q', 'B', 'V', 'g', '9477', '765', '4023', 'U', '4195', 'd', 'L', 'R', 'J', 'F', 'Y', 207, 1777, 7945, 'P', 'P']