In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9097, 'B', 3781, 'z', 'M', 9539, 'j', '9593', 'F', 'K', 'c', '9945', '8985', 'H', '5535', 'E', 'y', 'P', 957, 'n'], [3917, 'w', 'B', 1711, 'R', 371, 'Y', 'j', '9593', 'F', 'K', 'c', '9945', '8985', 'H', '5535', 'h', 'f', 'i', 'i']