In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8585, 1855, 3133, 1197, 7769, 'R', 265, 'W', 'F', 3433, 7947, 'c', 'S', 'P', 'q', 'Y', 'e', 3009, 3291, 'c', 'X', '4219', 's', '9277', 'j', '331', 'b', '2911', '2187', 't', 'E', '7945', 'n', '7889', '8655', '4757', '6623', '191', 'Y', '1379', 'F', 'd', 'm', 9917, 'J', 'j', 5931, 3471, 3701, 'H', 4767, 3527, 6619, 'T', 's', 387, 'X', 8273, 'd', 'W', 9001], [7497, 1957, 'w', 'h', 'T', 'c', 'X', '4219', 's', '9277', 'j', '331', 'b', '2911', '2187', 't', 'E', '7945', 'n', '7889', '8655', '4757', '6623', '191', 'Y', '1379', 'F', 'd', 'M', 7127, 'd', 1139]