David purchased a pair of jeans on sale for 18 the regular price of the jeans was 40 both prices include sale tax what was the percent discount on the price of the jeans