You will be given a definition of a task first, then some input of the task.
In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

[4069, 4709, 7027, 'K', 's', '7411', '7971', '4897', '6433', 'U', '8229', 'W', 'b', 3357, 'H', 'V'], [9297, 'H', 'b', '7411', '7971', '4897', '6433', 'U', '8229', 'W', 'g', 'a', 'U', 'V', 5579, 'a']
Output:
7411, 7971, 4897, 6433, U, 8229, W