In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9729, 'H', '8257', '6819', 'b', 'o', '6877', 'e', 'w', 9865], [4683, 9123, 'o', 'R', '8257', '6819', 'b', 'o', '6877', 'J', 2367]