If each text messages costs 0.05, and the number of text messages is t, the total cost Troy will have to pay is the fixed cost of 40 plus the variable cost of 0.05 per message, so we have:
If Troy wants to spend at most 70, the cost needs to be lesser than or equal 70, so we have that:
So the inequality is 40 + 0.05t <= 70