If sec x=3 and tan x=2sqrt 2, what are the values of sin x and cos ^2 x?