Since the cost of ice cream custard is directly proportional to its weight, we can express this relationship with the equation:
\[ y = kx \]
where \( y \) is the cost, \( x \) is the weight in ounces, and \( k \) is the constant of proportionality.
To determine the value of \( k \), we can look at the graph's coordinates. For example, if at 2 ounces (where \( x = 2 \)), the cost (where \( y = 5 \)), we can substitute these values into the equation:
\[ 5 = k \cdot 2 \]
Now solve for \( k \):
\[ k = \frac{5}{2} = 2.5 \]
So the equation becomes:
\[ y = 2.5x \]
Thus, the complete equation is:
\[ y = 2.5x \]