In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8197, 'u', 'K', 3505, 6593, 'H', 's', 1433, 'b', '3967', 'G', 'n', 'j', '1589', '5379', '5465', '3983', '4557', '7035', 'g', '493', 'S', 'O', 'L', 'y', 3329, 1411, 'g'], [8465, 1141, 8321, 'r', '3967', 'G', 'n', 'j', '1589', '5379', '5465', '3983', '4557', '7035', 'g', '493', 't', 'P', 'm', 6031, 193, 1563]