In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7717, 'y', 8107, 777, 'X', 1739, 'i', 4757, 7483, 'U', '4459', '985', '7247', '9333', 'm', 'x', '1835', '7719', '8419', '4257', '2003', '1525', '1791', '1447', 'd', '4387', '8957', 'U', 'C', 8657, 'A', 7789, 'l', 9547, 6287, 'P', 'a', 7183, 'Z', 8481, 6281, 'd', 4095], ['d', 9505, 'l', 1229, 'o', 'h', '4459', '985', '7247', '9333', 'm', 'x', '1835', '7719', '8419', '4257', '2003', '1525', '1791', '1447', 'd', '4387', '8957', 'm', 'E', 2475, 'r', 3941, 29, 'q', 2583, 9121, 'i']