45 total means
45=boys+girls
if 3/5 are boys then
3/5 area boys
3/5 of 45=boys
'of' can be translated as multiply for fractions
3/5 times 45=135/5=27
27 are boys
45=b+g
b=27
subsitute
45=27+g
subtract 27 from both sides
18=g
18 girls
27 boys
18 girls