find the equation of the tangent to the curve y=cosA + 3sinA at the point where A= pi/2

so i took A=pi/2 to get y= 2sqrt2 and m=sqrt2, with the resulting equation being y=sqrt2(A+2-(pi/2))

apparently that is so wrong, and the answer is y+A=3+(pi/2)

i need help here