If you eat a diet with 2,000 kilocalories and 45 percent of those calories come from protein, about how many grams of protein did you eat

Protein = 45% of total kilocalories
= 45% of 2000
= 900 kCal
Protein provides 4 calories per gram
So Gram of protein = 900÷4 = 225 gram