Amherst teachers will accept lower wages if override passes