The set of polynomials with even coefficients is an ideal, and \(2x\) has even coefficients, so it lies in \(I\). The claim that \(x\) lies in \(I\) is false, and \(2\) does belong to \(I\).
An ideal \(I\) of a ring \(R\) is an additive subgroup of \(R\) that absorbs multiplication by elements of \(R\): \(rI \subseteq I\) and \(Ir \subseteq I\) for every \(r \in R\).