已知tanx=1/2,求(sinx+3cosx)/(sinx+cosx)和sin^2x+sinxcosx+2的值