I know this is a BCH address, but it's the best example I could find. The same concept holds for BTC, so understanding what's going on is relevant.
https://explorer.bitcoin.com/bch/tx/5d0af59f43f8e8388839518243c743279e7c3dd526385fcc5bbcd907cd61bd2a
What one sees is one transactions with two inputs and two outputs.
- How does it happen that there are multiple inputs/outputs in a transaction?
- How did
12WsyKG89bxTGWV1iguxPWh6UX2ye1X8hDend up with 208.448 and18Q43boBRU8Sk57SjSfjgFbjvXhBccBrKqwith 18.816 - where in that transactional data does it specify which address gets what from the inputs?