How the proposed deal between provinces, smokers and tobacco companies would work