First diagram:
Sum of the three parts is equal to 9: x+x+x is 9 or three times x is 9
Equations:

Also you can write the equation 3*x=9 as follow by solving x:

Second diagram:
Sum of the two parts is equal to 9: x+3 = 9
Equations:

Solving x you can write the equation:
