设1,2,3班分别种了x,y,z个树
则2x=y+z+15 (1)
3y=x+z+15 (2)
5z=x+y+15 (3)
(1)+(2)+(3)得:
2x+3y+5z=2x+2y+2z+45
y+3z=45 (4)
(2)-(3)得:
3y-5z=z-y
4y=6z
y=1.5z (5)
(5)代入(4)得:
4.5z=45
z=10 (6)
(6)代入(5)得:
y=15 (7)
(6)(7)代入(1)得:
x=20
则x+y+z+15=60
答:共植树60颗.
(不懂可追问,满意请采纳)谢谢!祝你学习进步!