How can you model data with a linear function?

can i have example to please