In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5869, 'X', 'g', 'g', 9277, 7381, 'J', 'j', 'r', 'X', 'W', '7623', 'X', '9383', '3853', '7979', '5253', 'd', 'p', 'T', 'v'], [5235, 341, 'B', 99, 'J', 'j', 'r', 'X', 'W', '7623', 'X', '9383', '3853', '7979', '5253', 'd', 'p', 'I', 8181, 2205, 2367, 1185, 'U', 'm', 1621]