In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[675, 'd', '9421', '3667', '4797', '8461', 'Q', 'q', 'i', 5845, 5231], ['e', 'B', 'E', 'C', '9421', '3667', '4797', '8461', 'Q', 'q', 'U', 8125, 6649, 6147, 'j', 'j']