tanx=2,sin²x+sinxcosx-2cos²=(sin²x+sinxcosx-2cos²)/(sin²x+cos²)
=(tan^2x+tanx-2)/(tan^2x+1)
=(4+2-2)/(4+1)=4/5