Writing linear equation from real life grpah