Solve for z 2+3z=5+3z