2007 AIME I Problem 3

The complex number z is equal to 9+b i, where b is a positive real number and i^{2}=-1. Given that the imaginary parts of z^{2} and z^{3} are equal, find b.