A hardware store sells rope at a fixed price per foot. A 50-foot piece of rope cost $12. Write an equation that relates C, the cost in dollars of a piece of rope, to f, the length in feet of the piece of rope.