solve k