what are mandatory and discretionary spending?

Have you looked up mandatory and discretionary in a dictionary?

http://keepingamericagreat.org/glossary/discretionary-spending/

http://www.cbo.gov/publication/42214