Ricardo had to start with 16 golf balls.
Step-by-step explanation
First we will assume that the number of golf balls in starting was
![x](https://img.qammunity.org/2019/formulas/mathematics/college/lhtxftojjkzsmo3o2h4ilq8naohracejui.png)
He lost 6 golf balls while playing yesterday, that means remaining number of the balls
![= x-6](https://img.qammunity.org/2019/formulas/mathematics/middle-school/eyecvln2cbw4q2t0ywbrzub9fg7fb7hhky.png)
Today he bought 12 golf balls , so now the number of balls
![= (x-6) +12 = x+6](https://img.qammunity.org/2019/formulas/mathematics/middle-school/bqqyljodqsdaeuyf5zsf0x4f9tfhal644z.png)
Then he lost 4 balls on the course today, so the remaining number of balls
![= (x+6) -4 = x+2](https://img.qammunity.org/2019/formulas/mathematics/middle-school/gm37vozazngt6qaudfxv1e566qyaofpb2l.png)
The question says that he now has 18 golf balls, that means...
![x+2 = 18\\\\ x=18-2\\\\ x= 16](https://img.qammunity.org/2019/formulas/mathematics/middle-school/294grdcbrhr6flp507up0x12zhj3ufxs18.png)
So, Ricardo had to start with 16 golf balls.