In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6269, 'U', 1165, 4999, 'g', '9607', 'q', 'T', 'J', 355, 1965], [2649, 'I', 'g', '9607', 'q', 'T', 'R', 'X']