Solve for a -8<=3a+1<=4