In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['a', 3875, '2641', 'V', '5239', '9059', 'A', 'U'], ['B', 5185, 't', 'K', '2641', 'V', '5239', '9059', 'W', 7917, 'j']