Write a function that describes a linear relationship between two quantities

Write a function that describes a relationship between two quantities. Determine an explicit expression, a recursive process, or steps for calculation from a context.