(I was) my own teacher and pupil, and thanks to the efforts...
(I was) my own teacher and pupil, and thanks to the efforts of both, they were not discontented with each other.
(I was) my own teacher and pupil, and thanks to the efforts of both, they were not discontented with each other.