Answer
See below.
Work Step by Step
The sentence in "if...then" form is: If you follow Buddha’s “Middle Way,” then you are neither hedonistic nor ascetic.;
The contrapositive of $p\rightarrow q$ is $\sim q\rightarrow \sim p$.
The converse of $p\rightarrow q$ is $q \rightarrow p$.
The inverse of $p\rightarrow q$ is $\sim p\rightarrow \sim q$.
The negation of $ p\rightarrow q$ is $p\land \sim q$.
Hence here the converse is: If you are neither hedonistic nor ascetic, then you follow Buddha’s “Middle Way.” The inverse: If you do not follow Buddha’s “Middle Way,”
then you are either hedonistic or ascetic. The contrapositive: If you are either hedonistic or ascetic, then you do not follow Buddha’s “Middle Way.” The negation: You follow Buddha’s “Middle Way” and you are either hedonistic or ascetic.