When a bitcoin transaction is created, the bitcoin wallet searches for available unspent outputs in the wallet and uses them to send the specified amount to the specified destination.
The entire unspent output must be spent, so if the amount on the output is larger than the specified amount to...