In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['u', 'N', 8329, 'V', 'w', 6587, 'A', 'Z', 'w', '657', 'd', '7885', 'u', '6221', 'j', '7277', '8999', 'H', '5821', '1675', '9981', '7631', '9805', '1041', 'F', '8821', 'b', 'w', 'O', 'u', 8237, 'v', 'g', 9731, 5593, 'b'], [6511, 'w', 7331, 9163, 'Z', 'w', '657', 'd', '7885', 'u', '6221', 'j', '7277', '8999', 'H', '5821', '1675', '9981', '7631', '9805', '1041', 'F', '8821', 'o', 's', 'k', 'v', 's', 'x', 3047, 5949, 4897]