In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8099, 8189, 'p', '7997', 'e', 't', 'a', 'v', 4579], ['h', 3821, 4827, '7997', 'e', 't', 'a', 'E', 5071]