They’re both sovereign. When a king signs a treaty binding them in some way, they give up some sovereignty. But they don’t usually cease being sovereign.