what is the answer I had wanted to make sure if this was the answer

Answer:
area of the entire figure: 21 cm²
Step-by-step explanation:
bottom rectangle:
length * width
3 * 2
6 cm²
upper rectangle:
length * width
3 * 4
12 cm²
triangle area:
1/2 * base * height
1/2 * 2 * 3
3 cm²
Total area: 6 cm² + 12 cm² + 3 cm² = 21 cm²