In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['m', 'a', 2691, 'C', 'W', 'P', 'N', 's', 'Q', 'x', 2661, 'P', 9517, 2499, 4393, 'c', 'C', 'M', '5107', '2379', 'T', '1921', 'm', '3251', '5111', 'J', '8381', 'Y', '7363', 'U', 'd', 'o', 'r', 'M', 'l', 9081, 'z', 'm', 9239, 8641, 1211, 'i'], [1131, 'L', 1807, 'f', 4695, 't', 5321, 'c', 'C', 'M', '5107', '2379', 'T', '1921', 'm', '3251', '5111', 'J', '8381', 'Y', '7363', 'U', 'S', 8065, 'i', 1091, 805, 'Q', 3585]