A random sample of size $n$ from a bivariate distribution is denoted by $(x_r,y_r), r=1,2,3,...,n$. Show that if the regression line of $y$ on $x$ passes through the origin of its scatter diagram then $$\bar y\sum^n_{r=1} x_r^2=\bar x \sum^n_{r=1} x_r y_r$$ where $(\bar x,\bar y)$ is the mean point of the sample.
I don't really know how to begin. I am aware the line equation is $b=\frac{y}{x}=\frac{\sum xy-\frac{\sum x\sum y}{n}}{\sum x^2-\frac{(\sum x)^2}{n}}$
Not sure what to do next.