In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['n', 1515, 169, 'R', 'x', 3089, 'g', '5627', 'o', '4853', '8667', '8171', '8731', 'Z', 'y', '4105', '9119', 'x', 'D', 'w', 'h', 'U', 'g', 7175], ['U', 'J', 'l', 9191, 'J', 2297, 'N', '5627', 'o', '4853', '8667', '8171', '8731', 'Z', 'y', '4105', '9119', 'x', 'D', 'w', 'h', 'U', 'P', 4429]