In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6183, 'D', 'Z', 'b', '4465', '5479', 'Q', '6985', 'P', '4859', '3807', '4831', 'T', '2751', 'S', 'g', '323', 'K', 'c', '3881', '935', '9009', 'G', 'r', 'M', 5021, 'U', 259, 8567], ['g', 1099, 1403, 'V', 'b', 'Z', 'b', '4465', '5479', 'Q', '6985', 'P', '4859', '3807', '4831', 'T', '2751', 'S', 'g', '323', 'K', 'c', '3881', '935', '9009', 'G', 'h', 'H', 7251, 'K', 'U', 3957]