Given the roots,

To have a polynomial with real coefficients, the complex conjugates of 2i and i must be roots of the polynomial as well
The conjugate of 2i is -2i while the conjugate of i is -i
The roots of the polynomial will be

The factors of the polynomial will be

The factored form of the polynomial will be

Hence, answer is option A