The commonwealth was given failing grades for its sale of flavored tobacco products and low tobacco taxes.