linear and nonlinear functions worksheet 8th grade pdf