Hello guys

I am trying to find out which one of the following sentences is correct;

a) he failed to get enough money to pay for the new project.

b) he failed at getting enough money to pay for the new project.

Are they both correct?

Thanks guys.