The first step to write the inequality is to create an expression that represents the cost of each ride on the cab. This is done below:
Since the passenger can't spend more than 30, then the cost of the ride must be less or equal to that value. We have:
The inequality that represents this situation is: "0.25*x+7<=30"