How to combine multiple protected inputs?

Suppose I have a wallet with two z-address, one with 5 coins and another with 4. I want to send 9 to a merchant. Is it possible to do in one transaction, or do I need to combine the coins with two separate transactions and then send them to the merchant with another transaction?