Am I right?

Each box has four jars in it.
You have six boxes altogether.
Each jar has four eggs in it.

6X4=24
4X4=16
24+16=40

You have 24 Jars and 40 Eggs altogether... is this right? If not please tell me what I did wrong and what I should have done.