The amplitude is amximum displacement is 2. The period is the amount of time it takes to return to the same position. It takes t seconds to go from 2 to 0, and will take another t seconds to go from 0 to -2, another t seconds to go from -2 to 0 again, and then another t seconds to go from 0 back to 2. Thus we have 4t as the period.