Help : Quadratic equation formula for the problem : Coins And Triangle Problem Code: TRICOIN

Hello Chefs,

Can anyone please explain me :
How can we use Quadratic equation formula x = ( -b+sqrt(b - 4 a c ) ) * 2 on the problem TRICOIN Problem - CodeChef