If average of 8 and a^2 is (2a+2), value of a would be