<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
I have two arrays A (len of 3.8million) and B (len of 20k). For the minimal example, lets take this case:
<ASSISTANT_TASK:>
Python Code:
import numpy as np
A = np.array([1,1,2,3,3,3,4,5,6,7,8,8])
B = np.array([1,2,8])
C = A[np.in1d(A,B)]
<END_TASK>