The cost for class trip is $5 per student plus$100 for the bus. Input(x) rule output(x) 18 22 24 30

cost(x) = 5x + 100

e.g. cost for 22 students
= cost(22)
= 5(22) + 100
= 210

do the others in the same way

To find the total cost for each number of students, we can use the given rule:

Cost = number of students * cost per student + cost for the bus

For input(x) of 18:
Cost for 18 students = 18 * $5 + $100
Cost for 18 students = $90 + $100
Cost for 18 students = $190

For input(x) of 22:
Cost for 22 students = 22 * $5 + $100
Cost for 22 students = $110 + $100
Cost for 22 students = $210

For input(x) of 24:
Cost for 24 students = 24 * $5 + $100
Cost for 24 students = $120 + $100
Cost for 24 students = $220

For input(x) of 30:
Cost for 30 students = 30 * $5 + $100
Cost for 30 students = $150 + $100
Cost for 30 students = $250

Therefore, the output(x) for the given inputs would be:
Output(18) = $190
Output(22) = $210
Output(24) = $220
Output(30) = $250

To find the cost of the class trip for different numbers of students, we need to apply the given rule: $5 per student plus $100 for the bus.

Let's use the given inputs to calculate the outputs.

For the first input, which is 18 students:
Cost = (Number of students × cost per student) + cost for the bus
= (18 × $5) + $100
= $90 + $100
= $190

So, the output for the input 18 is $190.

For the second input, which is 22 students:
Cost = (22 × $5) + $100
= $110 + $100
= $210

So, the output for the input 22 is $210.

For the third input, which is 24 students:
Cost = (24 × $5) + $100
= $120 + $100
= $220

So, the output for the input 24 is $220.

For the fourth input, which is 30 students:
Cost = (30 × $5) + $100
= $150 + $100
= $250

So, the output for the input 30 is $250.

Therefore, the outputs for the given inputs are 18 → $190, 22 → $210, 24 → $220, and 30 → $250.