In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2009, 'G', 'p', '6617', 'i', '7109', 'D', 'i', 8385], ['j', 5201, 2399, 5897, '6617', 'i', '7109', 'D', 'x', 'x', 'V', 3325]