You need to multiply the cost per text message by the number of messages (x) add that to the fixed charge.
The total of those need to be less than or equal to the amount she wants to spend.
The equation would be written as:
0.30x + 12 <= 40
3.4m questions
4.3m answers