If tan x=3, what are sin x and cos x?