Heres a breadcrumb for you, Spanish defaults to masculine:

The masculine form is used to refer to mixed groups of males and females. Thus, depending on the context, los muchachos can mean either the children or the boys. Las muchachas can refer only to the girls.