what is the volume of this figure ?!! i dont know how to work it out

Think of it like this: a house is basically a square and triangle, so you find the volume of the cube and then the volume of the triangle and then find the sum. Hope this helps :)