In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9181, 'U', 3399, 'r', 'm', '339', '9217', 'i', 'r', 'V', 'h', 111], ['x', 7955, 'm', '339', '9217', 'i', 'r', 'V', 'C', 'x', 9705, 'E']