printing math summary