You don't need algebra or simultaneous equations to do this, but you do need to know the technique.
You also need to draw the problem to understand it (something I cannot do satisfactorily here).
You have the whole which is 170. This whole has been divided in some number of equal parts.
The girls have 6 shares, the boys one share and the teachers part of one share. To solve it you could, for example, add 6 to the number of teachers, so they would have one whole share as well. What you have is:
X X X X X X (girls, six shares)
X (boys, one share)
X (teachers + 6, one share)
In total you have 8 equal shares. The whole is now 170+6=176, so each share is worth 176:8=22
Hence, the number of teachers is 22-6=16.
Just to make sure I have done the maths right:
226=132 (girls)
221=22 (boys)
22-6=16 (teachers)
The total number of people is
132+22+16=170.
The problem is easy if you know the technique (there are much more difficult ones as well), but it is pretty much undoable if you don't.