In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1787, 'P', 'b', 'H', 'W', 'q', 1745, 6971, 9097, 'U', 7487, 8771, 6159, 'z', '8925', 'N', '9073', 'Z', '8655', 'R', 'j', 'r', 'a', '2879', '1567', 'S', 'k', '8235', 'v', '757', 'C', 'i', '377', '9609', '9483', '209', 'i', 'K', 751, 5295, 'x', 6473, 'q', 'j', 'G', 7141, 8423, 6559, 9373, 831, 'v', 'v', 5319, 'S', 6883, 4801], ['h', 5945, '8925', 'N', '9073', 'Z', '8655', 'R', 'j', 'r', 'a', '2879', '1567', 'S', 'k', '8235', 'v', '757', 'C', 'i', '377', '9609', '9483', '209', 'i', 'Q', 'a', 3787, 'U', 's', 'X', 'd', 'U', 6671, 'x', 'p', 9557, 'c', 1107, 'I', 'j', 'd']