Given the task definition and input, reply with output. In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

['P', 6705, 5017, 'Z', 3017, 'x', 'S', 7025, 4705, 95, 3071, 5421, 'E', 7125, 'N', 'V', '9731', '6707', '7233', '8599', '8371', '5639', 'U', 'F', '6045', 'T', '7479', '4101', '1061', '5049', '4003', 'O', '7815', 'V', '477', 'I', 7229, 'u', 'z', 3669, 'd', 'j', 'x', 'O', 'm', 4025, 7057, 9049, 4207, 'l', 'k'], [6447, 993, 'D', 2435, 1169, 'L', 7929, 2763, 'Y', 6515, 5075, 2575, 8653, 4377, 2903, 2025, 't', 'j', 'H', '9731', '6707', '7233', '8599', '8371', '5639', 'U', 'F', '6045', 'T', '7479', '4101', '1061', '5049', '4003', 'O', '7815', 'V', '477', 'r', 8103, 'a', 'G', 'E', 3309]
9731, 6707, 7233, 8599, 8371, 5639, U, F, 6045, T, 7479, 4101, 1061, 5049, 4003, O, 7815, V, 477