How To Find Linear Cost Function