I need help setting up an equation that will catch all the stars when the balls are drop which the balls are on the left side

I need help setting up an equation that will catch all the stars when the balls are drop which the balls are on the left side class=
Q&A Education