The first box is correct because if drawn on a praph it would show that it has a curve. Also another way to find out if it is nonlinear or linear is because the x-axis is increasing and the y-axis is decreasing. Hope this helps :)
You factor the expression first leaving you with Then you would cancel out 3xy as because there is exactly one on each side. This, in turn, would leave you with z - 1