In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['i', 'N', 'q', 3045, 4717, 'X', 'a', 'U', 3231, 4797, 8145, 6533, 'g', 'b', 4535, 5763, 7587, 'Z', 2995, 10031, '9995', '6141', 'L', '1661', 'b', 'r', '5907', 'z', '8747', '9049', '3017', 'h', 'z', '1541', 'Q', '3613', 'R', 'h', '3807', '5719', '7373', 'c', 'z', '2209', 'S', 'h', '853', 'L', 'W', 'T', 117, 'd', 'W', 2573, 7971, 8411, 'N', 'Z', 'R', 1303, 'X', 3277, 'p', 1527, 1407], [2891, 6193, 5097, 'd', 2563, 'x', '9995', '6141', 'L', '1661', 'b', 'r', '5907', 'z', '8747', '9049', '3017', 'h', 'z', '1541', 'Q', '3613', 'R', 'h', '3807', '5719', '7373', 'c', 'z', '2209', 'S', 'h', '853', 'L', 'i', 'V', 6977, 4737, 7933, 8055, 4279, 9589, 2579, 'B', 8989, 1969, 'm', 3013, 'x', 'e', 'c', 6317]