In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['a', 'e', 9605, 587, 'm', 9893, 1131, '95', 'c', '5817', 'y', 'C', 'l', '3381', 'Q', 2233, 's', 'U'], [4031, 'U', 6379, 'y', 'r', '95', 'c', '5817', 'y', 'C', 'l', '3381', 'G', 'f', 'g', 'k', 's', 'P', 'q']