In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5423, 5579, 'X', 8787, 5715, 'l', '8689', '985', '9611', '4395', '6681', 'U', 'L', 's', 'J', '4335', '7165', 'X', 7395, 8419, 9877, 2501, 8361], ['K', 3779, 'n', 'Z', 1891, 1035, 'b', 'M', 'z', 4709, '8689', '985', '9611', '4395', '6681', 'U', 'L', 's', 'J', '4335', '7165', 'i', 'p', 'D', 'R']