In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6277, 'D', '9285', '9679', 's', '7847', 'E', '4835', 'J', 'U', 'j', '7595', 'g', '9793', 'E', '5155', '2263', '2049', 'k', '8047', 'u', '2477', 'd', '9141', 'i', 'w', 'd', 'R', 'k', '387', '4199', '6269', 'T', 'x', 8781], [5489, 'c', 5777, 'w', 5357, 'O', '9285', '9679', 's', '7847', 'E', '4835', 'J', 'U', 'j', '7595', 'g', '9793', 'E', '5155', '2263', '2049', 'k', '8047', 'u', '2477', 'd', '9141', 'i', 'w', 'd', 'R', 'k', '387', '4199', '6269', 'h', 2457, 1285, 1449, 'd']