In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9167, 1441, 'p', 'u', 'f', 'z', 'o', 'D', 6883, '9851', '9839', '9495', '5883', '9735', 'K', '1021', '1649', 'e', '595', '5701', '9607', 'o', 'w', '4223', '4429', 'i', 'Y', 7929, 'W', 29, 7977, 'S', 'y', 'z', 4601], ['k', 2807, 5655, 8145, '9851', '9839', '9495', '5883', '9735', 'K', '1021', '1649', 'e', '595', '5701', '9607', 'o', 'w', '4223', '4429', 'W', 5097, 'V', 'm', 'z', 'n', 1945, 6145, 'S', 6889, 3437, 'G']