If you are asking how to estimate the slope of a straight line, see Help
for the SLOPE() function.
If you are asking how to draw a straight line on a graph that fits your
data, on the Chart menu select "Add Trendline", specify the type of
trend, and click on the options tab to specify that you want the
equation labeled on the graph.