Finding solutions for equations