ATQ
Substracting both
[tex]\\ \sf\longmapsto 2y=54[/tex]
[tex]\\ \sf\longmapsto y=27[/tex]
each paid
[tex]\\ \sf\longmapsto \dfrac{27}{3}=9[/tex]
Now
Total students went on trip
[tex]\\ \sf\longmapsto \dfrac{360}{9}[/tex]
[tex]\\ \sf\longmapsto 40[/tex]