Help me out and thank you for the help

Answer:
it's 42
count the cubes in the shape u will get the answer