In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

[4799, 'S', 'J', 6105, 3171, '4831', '2889', '7281', '1707', '5299', 'F', '3733', 'j', '5747', '5391', 'C', 'n', 5321, 'N', 'x', 9975, 'n', 'V', 'd', 1005], ['f', 769, '4831', '2889', '7281', '1707', '5299', 'F', '3733', 'j', '5747', '5391', 'D', 'M', 'A', 3693, 9035, 'k', 9599, 'd', 9795]
4831, 2889, 7281, 1707, 5299, F, 3733, j, 5747, 5391