Image size in KB versus pixels: what is the difference?
Pixels measure image dimensions; kilobytes measure the stored file. Two images with identical dimensions can have different file sizes because their detail and encoding differ.
Step-by-step
Use the pixel settings to meet the form dimensions and the KB setting to meet the upload limit.
Check your result
A 600 × 800 image contains 480,000 pixels, but that number does not tell you the JPEG file size. Check both properties after export.
Keep a copy of the original file and verify the downloaded result against your recipient’s requirements before submitting or printing it.