Answer: 18
Explanation:
Let x represents the number of exercises she had for homework.
Then, the expression for the number of exercises she did during study period =
![(x)/(2)](https://img.qammunity.org/2020/formulas/mathematics/college/syztitbd2ci2o7q1pb4nz12l0l4mnyib9p.png)
Remaining exercise =
![x-(x)/(2)=(x)/(2)](https://img.qammunity.org/2020/formulas/mathematics/college/v5may5ziiw341jqjsxh4yhxul5x2n0zbsy.png)
The number of exercises she did while waiting for a friend after school=
![(2)/(3)*(x)/(2)=(x)/(3)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/ncvv19ax9g667t0gp2t7k49rta2ya17957.png)
Also, she had three to finish at home that evening.
Then, we have
![x=(x)/(2)+(x)/(3)+3\\\\\Rightarrow\ x-(x)/(2)-(x)/(3)=3\\\\\Rightarrow(6x-3x-2x)/(6)=3\\\\\Rightarrow(x)/(6)=3\\\\\Rightarrow\ x=6*3=18](https://img.qammunity.org/2020/formulas/mathematics/middle-school/2ctetludz88zsg7cc35sefd332aqta7i7z.png)
Hence, she had 18 exercises for homework.