A's/Cubs agree to a deal