A class contains \( b \) boys and \( g \) girls. If the number of ways of selecting \( 3 \) boys and \( 2 \) girls from the class is \( 168 \), then \( b + 3g \) is equal to ______________.