There is a missing data in the text of the problem: the current drawn is 0.5 A (found on internet)
Solution:
The power used by the toaster is the product between the voltage V and the current I:

The toaster is used for a time of 2 hours: t=2h, therefore the energy used is equal to
