solve 5 and 6 by qudratic equation ax+b+c=0