In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2233, 'B', 'n', 'U', 'U', 'x', 'R', '5371', 'T', '1767', 't', 'w', '4465', 'f', 'A', 'U', '8137', '6167', '4235', 'm', 'y', '2119', 'r', '6839', '9107', '3973', 'X', 5215, 'Y', 397, 'R', 427, 3515, 1261, 'q'], [1161, 'd', 6849, 's', 8247, 'z', 'J', 'A', 'V', 1071, 2343, 1379, 'v', '5371', 'T', '1767', 't', 'w', '4465', 'f', 'A', 'U', '8137', '6167', '4235', 'm', 'y', '2119', 'r', '6839', '9107', '3973', 'W', 'V', 5673, 'd']