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:
[tex]\text{ cost(x)}=0.25\cdot x+7[/tex]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:
[tex]\begin{gathered} \text{ cost(x)}\leq30 \\ 0.25\cdot x+7\leq30 \end{gathered}[/tex]The inequality that represents this situation is: "0.25*x+7<=30"