In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 8863, 'P', '6655', 'w', 'j', '9015', 'r', 'J', 'e', 7051, 'Y', 'Y'], [4201, 4987, 'u', '6655', 'w', 'j', '9015', 'r', 'J', 'Y', 'R', 'f', 'u', 9485]