In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4863, 'j', 'Y', '1019', '2057', '3767', 'm', 'Y', 'a', 'Z'], [1363, 'h', 9391, 'Y', '1019', '2057', '3767', 'm', 'H', 'q', 7639, 8603]