Solve for x -5<3x+1<=7