number of people: 3
x: cost per person
You want to keep the cost below $120 per person, then:
x < 120
Total cost = number of people * cost per person = 3x
Let's call y to the total cost, then y = 3x
x < 120 Multiplying by 3 at both sides
3x < 3*120
y < 360