Simplify (3x)/(x+2)+x/(x+4)