In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5647, 5739, 1671, 'p', 8123, 'q', 'n', 'P', 'z', 'K', '4325', '5363', 'N', '3577', '8121', '7507', 'q', 'K', '653', 'Q', 'r', 'L', 'C', 'T', 'D', '8751', '2045', 'U', 'G', 'm', 'J', 9561, 2669, 'r', 5937, 'g', 'h'], [1803, 'g', 'g', 'g', 1115, 'd', 2073, 'l', 'w', 'g', 7445, 2155, 'T', 9585, 851, 2141, 'e', 'P', 'z', 'K', '4325', '5363', 'N', '3577', '8121', '7507', 'q', 'K', '653', 'Q', 'r', 'L', 'C', 'T', 'D', '8751', '2045', 'U', 'G', 'm', 'U', 5417, 8231, 4249, 'c', 3191, 3753, 6525, 'g', 'D', 4667, 9065, 6525, 9121, 'c', 'G', 8279, 'O']