In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6073, 'l', '6489', 'J', '6531', '791', 'a', 'q', 'M', 'r', 5961], [5007, 9831, 4041, 3327, 3525, 9577, '6489', 'J', '6531', '791', 'a', 'q', 'Q', 4671, 2093, 'G', 8629, 'T']