Nothing. Leave both the Height field, and the resolution field, blank.
As a Jpeg.
This is correct, but if you're following their advice and aiming for a 400KB file, you need to lower the quality value.
You can see the estimated size just below the bottom left corner of the photo - in this screenshot it's presently 594.7KB.
You use the Quality slider in the top right corner to lower that size.