'to the head teacher's office'
One way to obtain the Welsh equivalent of this type of English phrase is to:
Remember that the preposition i causes a soft mutation. Also y and r will cause a soft mutation if they are followed by a feminine singular noun, e.g.
to the middle of the bridge → i ganol y bont