In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8387, 5923, 'U', 'C', '6763', 'q', '3341', '8655', 'J', 'h', 's', 'i', 'G', 'S', 6943, 7261, 8241, 563, 'n', 7081, 'F'], ['T', 1665, 'X', 'U', 'C', '6763', 'q', '3341', '8655', 'J', 'h', 's', 'i', 'Y', 'f', 'j', 'E']