Evaluate the Function g(-4)=ax^2+24