I work in Engineeringan engineering field, and my PhD students often do what you describedescribed. In my opinion, you should be the first author. because
- you have set the problemproblem;
- you have set the outline of the solution and supervised the studentstudent;
- you have composed the paper.
To allowgrant the master student first authorship to a master student, theyshe usually needneeds to:
- contribute at least contribute to the development some novel ideasideas;
- take most of the writing burden.