Another way to think is by the constraint method..!!
See..
Let's find the max value of z, that could fit the equation..!
For that x and y must be least...{2, 3 respectively)
So, max(z) = 12..
So, 4 <=z <=12..
Similarly, 2 <= x <=10..
And, 3 <= y <= 11
Now, for z=4, there are 9 solutions possible (for each value from y=3 to 11, there will always be 1 value of x.)
For z=5, there are 8 solutions possible (from y=4 to y=11, there will be a value of x, but for y=3, there's no value for x.)
This goes on, till z=12, there will be only 1 solution...@ Simple pattern will be seen..!
So, the total solutions will be..
9+8+7+6+5+4+3+2+1 = 45..!!
Method if not ready to go with the Formula based logic..!!