If Z(w) is equivalent to 21w+12 and this is an encryptor, then how would I find the decryptor?

I know the decryption law is w=A^(-1) * (Z-B) (mod N) where A^(-1) is the multiplicative inverse.

The encryption law is E(w) is equivalent to Aw + B (mod N)