PLSSSSS HELP CORRECT ANSWER GETS BRAINLIEST

Answer:
6 units
Step-by-step explanation:
use imagination to separate the triangle from the square.
2*2 is 4 which is the volume of the square part
2*2/2 is the volume of the triangle which divides out to be 2
2+4=6