Real solutions of quadratic equations