In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1575, 8661, 'h', 8439, 'x', '5733', '3329', 'q', 'w', 4485], ['s', 7671, 9051, 'x', '5733', '3329', 'q', 'v', 'O', 4689, 5107]