In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5083, 'i', 9255, 'v', 'j', 'r', 7493, 1397, 5365, '3987', '7757', '1937', '8601', '9721', '5723', '1583', 'Y', '3409', 'F', 'X', 9157, 'd', 'f'], ['h', 21, 4833, '3987', '7757', '1937', '8601', '9721', '5723', '1583', 'Y', '3409', 'p', 6017, 'U', 8717, 6905, 'E', 'q', 'Z', 3315]