In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6239, 'O', 'K', '3997', 'H', 'H', 'b', 'R', '9035', 'H', '4645', 'x', 4651], ['L', 8443, 6965, 'S', 's', 'K', '3997', 'H', 'H', 'b', 'R', '9035', 'H', '4645', 'b', 'w', 'i', 10007, 'h', 8893, 'G', 5365]