In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 'T', 5173, 7387, 'S', 6909, 'd', 'i', 'y', 'e', 'Q', 'X', 'n', 'b', 'V', '7245', 'C', '8259', 'd', '3417', '5187', 'M', '293', '6181', 'N', '629', 'C', '6539', 'X', 'c', 'd', 855, 'F', 'T', 'D', 'h', 9331, 'P', 'm'], [585, 'o', 'b', 'r', 'g', 3947, 'P', 'w', 'm', 'W', 'n', 3885, 'D', 7741, 'u', 'e', 'Q', 'X', 'n', 'b', 'V', '7245', 'C', '8259', 'd', '3417', '5187', 'M', '293', '6181', 'N', '629', 'C', '6539', 'X', 'J', 'V', 'm', 8211, 's', 'U', 8631, 4947]