Scaffolded solve method.