In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1783, 'W', 'S', 'p', 7517, 1227, 'B', 9323, '9165', '6505', 'M', '4855', 'z', '615', '5473', '9951', 'W', 119], [4057, 8451, '9165', '6505', 'M', '4855', 'z', '615', '5473', '9951', 'i', 7569, 'C', 'v', 3787, 3551]