Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5037, 3703, 'q', 4929, 'g', 2099, 'l', 'y', 'q', 7235, '3589', 'd', '6181', '5167', 'H', 'q', 'w', 'T', '3617', 'l', '6561', 's', 'v', 'S', 'v', 'D', 'v', 5833, 9959, 'F', 'E', 'r'], ['z', 'e', 'V', 1369, 'u', '3589', 'd', '6181', '5167', 'H', 'q', 'w', 'T', '3617', 'l', '6561', 'U', 4571]
Output:
3589, d, 6181, 5167, H, q, w, T, 3617, l, 6561