In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 3355, 7871, 'Q', 291, 97, 'R', 6155, 2865, 'w', 'A', 2433, 'A', 9229, 'Q', 'Y', '955', '8265', 'd', 'd', '9533', '5871', '3861', '5821', 'j', 'd', '21', 'S', '3601', '2951', '6411', 'S', 1087, 5899, 'O', 'q', 307, 'Z'], [3901, 5865, 'X', 'r', 6085, 1915, 9671, 'v', 'T', 'd', 't', 'Y', '955', '8265', 'd', 'd', '9533', '5871', '3861', '5821', 'j', 'd', '21', 'S', '3601', '2951', '6411', 'j', 3335, 475, 'E', 'm', 'j', 'p', 'q', 'W']