In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1613, 9803, 'R', 1657, 'K', 'M', '6193', 'M', '641', '5253', 'U', '927', '1555', 'M', 'U', 'm', 'q', '8727', '9037', '3889', 'Z', '4347', 'g', 'A', 'o', 't', 'F', 'E', 'C', 'g', '2517', 'D', 'H', 3835, 3659, 1073, 'I', 's', 'h', 9137, 'f', 2687, 'A', 8541, 3875], [597, 4905, 6715, 'K', 'M', '6193', 'M', '641', '5253', 'U', '927', '1555', 'M', 'U', 'm', 'q', '8727', '9037', '3889', 'Z', '4347', 'g', 'A', 'o', 't', 'F', 'E', 'C', 'g', '2517', 'D', 'c', 559]