solve 3x+1 = (6x+1)/2 for x