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