In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4289, 'P', 4981, 'X', '5875', '535', '8563', 'd', '1319', '7489', 'J', '7305', '2497', '8065', 'T', 'f', 5289, 'f', 'u', 5123, 'C', 6783, 'c', 'x', 'q', 6743], ['D', 'l', 'i', 'E', 'p', 2741, 'i', 5821, 3969, 1261, 'O', 'X', '5875', '535', '8563', 'd', '1319', '7489', 'J', '7305', '2497', '8065', 'T', 'r', 3617, 'V', 'v']