In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1575, 'O', 'C', 'V', 1239, 'h', 'g', '6871', '5127', '47', 'H', '4339', 'j', 'i', 3631, 'g', 8359, 1163], ['W', 'S', 'h', 'g', '6871', '5127', '47', 'H', '4339', 'j', 'q', 8081, 1459, 'x']