solve two vars