Answer: nothing; because Sam is an independent contractor.
Explanation:
Under the law of agency, an agency is created when an authority is delegated from one individual to another individual whereby such person is appointed to do a particular job.
Based on the information given, Joe is not liable liable to the passer-by because Sam is an independent contractor as he was contracted to Casey out a task. If he was an employee of Joe, then he will be liable.