V=h[( (a+b)/2)^2 + 1/3( (a-b)/2)^2]

showing all steps that it reduces to following:

v=h/3(a^2 +ab+b^2)

I will be happy to check your work. Expand, and then combine terms.