There are two formulas for solving the quadratic!... so give it a go and see if they both work. Both c and a must not be zero.
http://jwilson.coe.uga.edu/EMAT7050/Students/Wilson/Quad.htm