In our lecture about general mechanics, we have treated the simplified 3-body system consisting of the Sun, the Earth and the Moon. We assumed that the moon does not have any influence on the Sun or the Earth and wanted to find its equation of motion. Let us consider the frame of reference of the Earth as illustrated in this sketch:
Denote by $M$ the Sun's mass and by $m$ the Earth's mass. In the lecture notes, it is stated that gravitational and centrifugal force of the Sun and the Earth have to cancel each other which leads to
$$G \frac{mM}{R^2} = \frac{mM}{M+m}R\omega^2 \approx mR\omega^2.$$
I don't really see what is happening here. The LHS is just the gravitational force, which is clear. Which centrifugal force does this have to be equal to? If we look at the centrifugal force of the Earth, if I'm not mistaken, it should be zero, since in general it is expressed by $-m \omega \wedge (w \wedge y)$ and $y = 0$. However, if we look at the Sun's centrifugal force, then the mass should be $M$ and not $m$. What centrifugal force are we looking at exactly? Why are we plugging in $\frac{mM}{m+M}$ for the mass in the general expression?