Step 1 :Distribute the 4 to both x and 7 in the expression $4(x+7)-7x+2$ to get $4x+28-7x+2$
Step 2 :Combine like terms to get $-3x+30$
Step 3 :The simplified expression is $-3x+30$
Step 4 :Comparing this with the options given in the question, it matches with option D
Step 5 :Final Answer: \(\boxed{D. -3x + 30}\)