In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3725, 'd', 'r', '1291', 'k', 'T', 'D', 'N', 'f', '2579', 'U', 'J', '4969', 'J', 'R', 'j'], [7431, 6543, 'g', 'H', 'w', 'e', 2487, 'c', 3875, '1291', 'k', 'T', 'D', 'N', 'f', '2579', 'U', 'J', '4969', 'x', 5663]