Make z the subject of the formula:
X=3y+z
X=3y+z