In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 'c', 'o', 'c', '8655', 'K', '5735', 'o', 'w', 'F', '37', 'i', 'e', 'W', 'Q', 'T', 'V', 6279, 'T', 'L', 6009, 'G', 'g', 6109, 'd'], [1039, 7089, 'o', 'c', '8655', 'K', '5735', 'o', 'w', 'F', '37', 'i', 'e', 'W', 'l', 'o', 8977, 7697, 3777, 9645, 'r']