In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7835, 9307, 'U', 5675, '7109', 'U', 'i', '5183', 'd', 'o', 'B'], [9191, 5393, 'e', '7109', 'U', 'i', '5183', 'G', 'h']