In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7701, 'g', 7497, '7873', 'I', 's', '3111', 's', 'p', '4849', 'Z', 'z', 'J', '7159', 'C', '1449', 'A', 'j', 6707, 'j', 'h'], ['K', 7687, 2747, 5799, 'd', 1463, 'X', 1123, 8029, 'n', '7873', 'I', 's', '3111', 's', 'p', '4849', 'Z', 'z', 'J', '7159', 'C', '1449', 'A', 'Z', 'K', 4589, 'B', 7565, 8037, 4147]