The first thing you have to realize is that tangent is the slope of a curve on a given point. You can solve for the slope by finding the derivative of the given function. So:
[tex] \frac{d}{dx} xsin(x)[/tex]
Next use product rule (I recommend watching videos if you're confused):
[tex]= [sin(x)] + [x*cos(x)][/tex]
Next substitute you x-value (π/2) into your derivative: