Let the amount of text messages be x. Since we are looking at making both plans equal, we add the fixed monthly charges to the number of messages multiplied by the cost.
The total amount charged by Totally will be 30 + 0.2x
The total amount charged by Gnarly will be
40 + 0.1x
Now since we are trying to get the number of text messages that make both charges equal, we equate the two charges and that is: