In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6585, 'U', 8187, 2079, 'P', 'E', 'H', 'V', 'i', 't', 't', '7843', 'U', 'B', 'm', 'N', '8057', '577', 'p', 'O', '5909', 'g', 'f', 8511, 567], ['B', 'c', 'C', 2547, 5235, 4719, 't', '7843', 'U', 'B', 'm', 'N', '8057', '577', 'p', 'O', '5909', 'g', 'O', 'h', 5971, 815, 911]