In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4973, 'S', 3689, 'l', 'W', 'G', 'J', '8153', '2517', '1319', 'H', 'M', 7415, 'e', 'Q', 5623], ['M', 5087, 'W', 'W', 'G', 'J', '8153', '2517', '1319', 'H', 'd', 7303, 2021]