Let N be the number of text messages sent.
The charge for N messages in one company will be:
[tex]40+0.39N[/tex]While on the other company, it will be:
[tex]30+0.49N[/tex]If after N messages, the charge is the same in both companies, then:
[tex]40+0.39N=30+0.49N[/tex]Solve this equation for N:
[tex]\begin{gathered} 0.49N-0.39N=40-30 \\ \Rightarrow0.1N=10 \\ \Rightarrow N=100 \end{gathered}[/tex]Therefore, both companies will charge the same at 100 messages sent.