In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7941, 'O', 7275, 'D', 'Y', 'V', '361', 'y', 'D', 'd', '5881', '1781', '7001', 'J', 'j', '9583', 'L', 'x', 9263, 'C', 'i', 'g'], [9031, 1009, 'U', 'g', 1033, 4649, 4575, 6959, 8455, 205, 'W', 'a', 8305, 'D', 'Y', 'V', '361', 'y', 'D', 'd', '5881', '1781', '7001', 'J', 'j', '9583', 'x', 'a']