Nestor R. answered 09/03/19
Mathematically-oriented professional with many years of experience
C=2h+9f+2p is the formula for total calories based on carbohydrates, fat and protein combined.
If you want to find the number of grams of fat for some calorie count, you need to first rearrange the terms in the given formula to isolate the f-term on one side of the equals sign:
C - (2h+2p) = 9f
Divide both sides by 9 to get the solution for f:
[C - (2h+2p)] / 9 = f
This can be written a bit more neatly as [C - 2(h+p)] / 9 = f