Let X₁ represent the variable "Number of TV commercials" and X₂ represent the variable "car sales"
To calculate the Pearson correlation coefficient you have to apply the following formula:
First, you have to calculate the sums:
Now you can calculate the correlation coefficient:
The correlation coefficient, rounded to three decimal places, is r=0.914