The first diagram, because there are two of the same inputs (3 has two different outputs)
Only the volume is given, so you can already assume the rectangular prism is a cube, which in that case you can divide by 3 to get the answer.
Words : there will be 1 teacher for every 17 students that go on a field trip
equation : y = 17x where y is student x is teacher
graph :