Consider a homogeneous system of three linear equations in three unknowns represented by $AX=O$. If $X = \begin{pmatrix}l \\ m \\ 0 \end{pmatrix}, l \neq 0, m \neq 0, l, m \in \mathbb{R}$ represents an infinite number of solutions of this system, then rank of A is