In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6589, 'Y', 3923, 1283, 5867, 'V', 'w', 'K', 3419, 'X', 4903, 7527, 'G', 1063, 'U', 'g', 3461, 'a', 'W', 'u', '2155', 'b', 'H', 'a', 'P', 'r', 'J', '9815', 'x', '6061', '6449', '5831', '491', '1677', 'w', '9723', 'U', 'A', '6565', 'I', 7263, 2643, 'i', 'B', 7429, 5843, 1153], [641, 1901, 'E', 'P', 'p', 4839, 'x', 'u', '2155', 'b', 'H', 'a', 'P', 'r', 'J', '9815', 'x', '6061', '6449', '5831', '491', '1677', 'w', '9723', 'U', 'A', '6565', 'F', 'Q']