The green one is 22 
The yellow one is 31
Explanation:
On the green I found the area of the triangle 
4•3=12  12/2 =6 
Then the area of the square 
4•4=16 then added together 
16+6=22
The yellow one I found the area of the trapezoid; the formula is (a+b/2)(h)
5+3=8•2=16
Then the rectangle area 
3•5=15
Then added 
15+16=31