400
A cup bearer was a trusted, important officer who prepared and tasted all Pharaoh's drinks to guarantee quality and to prevent poisoning Likewise, a baker provided Pharaoh's food. This is the reason these men were in prison.
What is they committed an offense against their lord the king of Egypt?