draw a line of fit using 20, 25 and 25,30

The equation is
[tex]y=1.08989x+3.3427[/tex]To find this equation we need to find the sum of all the values of x and y:
[tex]\begin{gathered} S_x=240 \\ S_y=295 \end{gathered}[/tex]the mean for each variable is:
[tex]\begin{gathered} M_x=24 \\ M_y=29.5 \end{gathered}[/tex]The sum of squares for each variable is:
[tex]\begin{gathered} SS_x=890 \\ SS_y=970 \end{gathered}[/tex]now the regression equation is given as:
[tex]y=mx+b[/tex]where m is:
[tex]m=\frac{SS_x}{SS_y}[/tex]and
[tex]b=M_y-mM_x[/tex]then:
[tex]\begin{gathered} m=\frac{970}{890}=1.08989 \\ b=29.5-1.08989\cdot24=3.3427 \end{gathered}[/tex]