Step-by-step explanation:
Groups are vertical columns so they go up and down. They also tell you the energy level.
Periods are horizontal rows so they go left and right. They also tell you the valence electron.
I don't have a good periodic table right now but you should be able to figure it out now.