This is a question taken from my grade 12 math textbook. I'm really not sure how to solve this problem, so any help is really appreciated!

Determine solutions for tanxcos^2x - tanx = 0 in the interval x Є[-2p,2p]

The answer taken from the textbook is: -2p,-p, 0, p, 2p

Thanks in advance! :)