The infinite phrase must contain an infinitive, which in this case is "to follow". To complete the phrase, we need to know what was followed and any additional information such why or how was this something followed.
the correct answer is B.to follow the recipe carefully