In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1065, 2741, 'w', 'B', 'X', '5865', 's', '2579', '3679', 'K', 4415, 5237], [9019, 4795, 8363, 1935, 9883, 'X', '5865', 's', '2579', '3679', 'y', 4605, 8603, 1243, 9199]