Finding constant of variation and function rule