In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1181, 'l', 'v', 'v', '9059', '1397', '1859', '9231', 'y', 7219], ['P', 225, 'i', '9059', '1397', '1859', '9231', 'i', 'c', 'I']