Use the dev tools in your browser to see how the sizes are computed. You need to remember to take into account the width of the border in the overall dimensions
More information here: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model
You should also remember what Paul told you: