How does the sentence end?

Logan worked for the government while Joseph worked at a coffee shop, so
Joseph was paid by the shop owner.