A compound contains 31.91% potassium, 28.93% chlorine and the rest oxygen. What is the chemical…