An isomorphism of rings

Let Z[2]={a+b2|a,b∈Z}, and let R⊂M2(Z) be the ring of all 2×2 matrices of the form [ab2ba]. Prove Z[2] is isomorphic to R.

Hint: Start by showing the map a+b2↦[ab2ba] is a ring homomorphism.