Exact solutions to quadratic gravity