But he hanged the chief of the bakers
"But he commanded for the chief of the bakers to be hanged" or "But he commanded his guards to hang the chief of the bakers"
just as Joseph had interpreted to them
"just as Joseph had said would happen when he interpreted the two men's dreams"