Tommy made 6 rows of blocks, with each row containing 8 blocks. How many blocks did Tommy have altogether?