In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1583, 151, 5113, 1157, '3165', 'g', '4181', 'O', '5999', 'E', 6485, 625, 'x', 8727], [185, 2075, 'I', '3165', 'g', '4181', 'O', '5999', 'A', 'l', 2191, 6623]