A gym teacher has $30 to spend on new basketballs. If each basketball costs $6, how many basketballs can the gym teacher buy?