In acid medium, \(\mathrm{H_2O_2}\) reacts with aqueous \(\mathrm{KMnO_4}\) to form \(\mathrm{Mn^{2+}}\), \(\mathrm{H_2O}\) and \(X\). In basic medium, \(\mathrm{H_2O_2}\) reacts with aqueous \(\mathrm{KMnO_4}\) to form \(\mathrm{MnO_2}\), \(\mathrm{H_2O}\), \(\mathrm{OH^-}\) and \(Y\). What are \(X\) and \(Y\) respectively?