Let's find the correlation between the girls and the boys in a class, let's first just rewrite the data to make things easier, we know that girls are the independent variable then let's call it x, and the boys will be y. Then
y - boys
x - girls
To find the correlation we will use the following definition:

Now let's evaluate the mean of x, y, and all the necessary sums:

And the sums

And the other sums:
![\begin{gathered} \sum(x_i-\bar{x})^2=674.22 \\ \\ \operatorname{\sum}(y_i-\bar{y})^2=342.22 \end{gathered}]()
Therefore the correlation will be

Now let's find the line that best fits the data, to do so let's use the following definitions for slope and y-intercept:

Then let's find the slope using the sums we have already calculated

And the y-intercept

Therefore the line that best fit is

Final answer:
