If the miller had travelled to the market with Emma, they would have each rode their own donkey. Problem solved.