Answer:
0.4
Explanation:
If the ratio of boys to girls in a class is 2:3, then
- there are 2x boys;
- there are 3x girls.
If there are 18 girls in the class, then
![3x=18\\ \\x=6](https://img.qammunity.org/2020/formulas/mathematics/high-school/rajuxmeqyk7g9s6z9kcaepthg9d0rkd9pj.png)
Thus, there are
boys;
girls;
students in total.
The probability of a boy being in the class is
![P=(12)/(30)=(2)/(5)=0.4](https://img.qammunity.org/2020/formulas/mathematics/high-school/ssboenbswffqd2y71erac9ef89ochg1g1k.png)