In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3461, 'h', 's', 6655, '10019', 's', 'u', '7377', '6417', 'd', '7415', '4897', 'J', 'a', 7105, 891, 2835, 'k'], [1785, 'S', 4743, 6949, 'X', 4843, 't', 3161, 5165, '10019', 's', 'u', '7377', '6417', 'd', '7415', '4897', 'J', 'V', 'z', 'Q', 637, 'y', 7019]