In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1057, 2783, '7387', 'R', 'a', 'a', 'O', 'N', 'M', 'A', 'f', 'X', 5393], ['W', 9573, 3253, 'X', '7387', 'R', 'a', 'a', 'O', 'N', 'M', 'E', 'S', 'm', 8103, 6873, 'H', 'I']