In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6385, 'e', 'R', 'H', '8647', '8133', '3057', 'i', 'R', 4077, 4987], ['d', 4923, 'H', '8647', '8133', '3057', 'J', 'e']