The information in the transaction would show the wallet that the funds were sent from, they could then check that account and be able to see how much money you own and all your transactions into and out of that account.
You can see all transaction from that account not only the transaction between person A and B