solve 3x+7=y and x=3y for y