It's easiest for me to explain with a drawing. Show a transaction as a set of inputs plus a set of outputs. Then show another transaction that uses the outputs of the last transaction as inputs