In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3623, 'v', 'L', '9679', '9277', '5399', 'i', 8571, 'o'], [337, 'h', 'Y', '9679', '9277', '5399', 'V', 5455, 9477]