In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['O', 'e', 't', '2707', 'Z', 'i', 'Q', 7897, 365], ['s', 5607, 5101, 't', '2707', 'Z', 'i', 'l', 'a', 2549, 4585]