Finding the constant of variation and writing the function rule