UTXO are the possible Bitcoins on the blockchain which I can transfer with my wallet.
Different UTXO will put together by my wallet to cover my transaction
The wallet will calculate the moste reasonable transaction fee.The calculation is based by the difference be input and output.
There is also an output to my self next to the “main” output. For example: I have to pay 7 Bitcoin and I only have 5 and 4 Bitcoins UTXO so my output will be 9 Bitcoin …7 to pay the bill and 2 to my own wallet “back”. That gives an increase of privacy.