B) taxing and borrowing
The money that the government spends on national security primarily comes from taxation (revenue collected from individuals and businesses) and borrowing (issuing government bonds and taking loans when there is a budget deficit).