可以有以下两种方式:
He felt maths is not only difficult but also boring.
He felt maths is both difficult and boring.