For the information given in the statement you have
[tex]\frac{\text{ number of red balls}}{\text{ number of green balls}}=\frac{2}{7}[/tex]Then
[tex]\frac{2}{7}=\frac{14\text{ red balls}}{x\text{ green balls}}[/tex]Solving for x
[tex]\begin{gathered} \frac{2}{7}=\frac{14}{x} \\ \text{ Apply cross multiplication} \\ 2\cdot x=14\cdot7 \\ 2x=98 \\ \text{ Divide by 2 into both sides of the equation} \\ 2x=\frac{98}{2} \\ x=49 \end{gathered}[/tex]Therefore, there are 49 green balls.