In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['m', 3701, 4747, 'P', 's', 's', 's', 5071, 'W', 'N', '9679', 'm', 'H', '1665', 'W', '5727', 'A', 2695, 6039, 4713, 'W', 1495, 1063, 5123], ['N', 'j', 8003, 'd', 9359, 'W', 'N', '9679', 'm', 'H', '1665', 'W', '5727', 's', 4385, 'O']