We investigate the average number of solutions of certain quadratic congruences. As an application, we establish Manins conjecture for a cubic surface whose singularity type is A_5+A_1.