Okay, here are the steps:
1) Convert the mass percentages to grams of each element in 100 g of the compound:
K: 24.75% = 24.75 g
Mn: 34.77% = 34.77 g
O: 40.51% = 40.51 g
2) Calculate the moles of each element:
K: 24.75 g / 39.10 g/mol (molar mass of K) = 0.634 mol
Mn: 34.77 g / 54.94 g/mol (molar mass of Mn) = 0.634 mol
O: 40.51 g / 16.00 g/mol (molar mass of O)