Add spaces: SowhenJosephcametohisbrothers,theytookoffhislongcoatwhichhehadon;

Answer: So when Joseph came to his brothers, they took off his long coat which he had on;

Add spaces: Itcanalsoaskyoutoleaveifyoucannotprovethatyouhavearealisticchanceoffindingworkthere.

Answer: It can also ask you to leave if you cannot prove that you have a realistic chance of finding work there.

Add spaces: Itwasafairytaleeventforus,ANDourguests

Answer:
It was a fairytale event for us, AND our guests