In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[497, 'E', 'Z', 'W', 'H', 'M', 4513, 4059, 9027, 'r', 'c', 6613, 'i', 'L', 7853, '6105', '7931', '2757', '3963', 'd', 'f', '5959', 'U', '1343', '2075', 'E', 'k', 'b', '7461', 'b', '9911', 'F', '8299', 'r', 'b', 'i', 'c', '9623', 'w', 't', 'n', 's', '7653', '5925', '8451', 'H', 8687, 'J'], ['o', 'G', 'X', 'Z', 251, 'r', 'u', 349, 2013, 'j', 'p', 'I', '6105', '7931', '2757', '3963', 'd', 'f', '5959', 'U', '1343', '2075', 'E', 'k', 'b', '7461', 'b', '9911', 'F', '8299', 'r', 'b', 'i', 'c', '9623', 'w', 't', 'n', 's', '7653', '5925', '8451', 'p', 419, 1809, 8395]