simplify and streamline solution to question on power of two-sample test