Write a function rule to represent the situation.
the total cost C for g grams of venison if each gram costs $5.72
Write a function rule using C and g as variables.
(Type an equation.)