Given the following shapes: a trapezoid with bases 2 and 7 and height 3, a trapezoid with bases 1 and 1 and height 2, a trapezoid with bases 1 and 7 and height 3, a rectangle with width 3 and height 2, a right_triangle with base 7 and height 1, a rectangle with width 1 and height 3. What is the total area of all shapes? Please round the result to the nearest integer.
<think>Trapezoid with bases 2, 7 and height 3: Area = 0.5 x (2 + 7) x 3 = 13.5
Trapezoid with bases 1, 1 and height 2: Area = 0.5 x (1 + 1) x 2 = 2.0
Trapezoid with bases 1, 7 and height 3: Area = 0.5 x (1 + 7) x 3 = 12.0
Rectangle with width 3 and height 2: Area = 3 x 2 = 6
Right triangle with base 7 and height 1: Area = 0.5 x 7 x 1 = 3.5
Rectangle with width 1 and height 3: Area = 1 x 3 = 3</think>

<answer>40</answer>