A+(a? +2bc-5b? )=3a? -2bc+7b? ,
So A=2a? -4bc+ 12b?
Replace it with a.
A-(a? +2bc-5b? )
=2a? -4bc+ 12b? -(a? +2bc-5b? )
=a? -6bc+ 17b?