已知x:y:z=3:4:7,且2x—y+z=-18,求式子x+2y-z的值.