A school bought $$12$$ volleyballs and basketballs in total for ＄$$340$$. Each basketball costs ＄$$30$$. Each volleyball costs ＄$$25$$.  How many basketballs did the school buy? 
选项为:A:$$4$$  B:$$5$$  C:$$6$$  D:$$7$$  E:$$8$$  请回答其中一个选项.