In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['q', 'i', 'h', '7627', 'w', '3657', '4389', '4703', '8021', 'y', 'U', 'n', '9445', '9471', '1139', 'm', '6347', 'j', '2557', 'e', 'H', 'N', 's', 'f', 3665, 'a', 'Z', 'Y', 'n', 'S', 'h', 5619, 1655, 'm', 'j', 'A', 3097, 'p', 7045, 8321, 9305], [331, 5821, 93, 7887, 10017, 6863, 'T', 'i', 'i', 't', 'W', 5777, 353, 'P', 5013, 5425, 7601, 5105, 'S', '7627', 'w', '3657', '4389', '4703', '8021', 'y', 'U', 'n', '9445', '9471', '1139', 'm', '6347', 'j', '2557', 'e', 'H', 'N', 's', 'C', 'P', 7673, 't', 9073, 665, 'U', 5833]