There are x pencils each in y boxes. How many pencils are there in all?
Here it is given that,
In 1 box we have x pencils
In y boxes there are total y×x=xy pencils
Hence, there are xy pencils in all.