In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['j', 4713, 9743, 'P', '513', 'j', '1933', '139', 'q', 'r', '8545', '4023', 'M', 'R', '5111', '2629', '8489', 'A', 'Y', 4789, 'd', 8365, 'u', 'P', 'q'], ['L', 'x', 'k', 715, 5391, 3285, 'I', '513', 'j', '1933', '139', 'q', 'r', '8545', '4023', 'M', 'R', '5111', '2629', '8489', 'Z', 's', 'f']