Consider the following figure (the length of the sides in the square is 1):
The unit square is transformed into the rectangle by using scaling and rotation.
What is the transformation matrix for the transformation that moves the unit square to the rectangle depicted above? (Hint: $A=A_\theta \,*A_s$)
I'm stuck here. How am I supposed to approach this?

Take the standard basis $\{e_1,e_2\}$ for $\Bbb{R}^2$. First, you have to rotate it by an angle of $\theta=\frac{3\pi}{4}\text{rad}$ (why?). So, you're mapping $e_1$ into $v_1$ and $e_2$ into $v_2$.
Then, you have to map $v_1$ into $w_1=\sqrt{2} v_1$ and $v_2$ into $w_2=2\sqrt{2}v_2$ (why?). And then, you're done.
Ps.: the order that you do this is not important
Edit: There is another way to solve this, a way that "hides" those steps (but I really appreciate if you understand the first one, it's more constructive).
Think about where you're going to send each vector of the basis $\{e_1,e_2\}$. We're looking for a transformation $A$ that maps $(1,0)\mapsto(-2,2)$ and $(0,1)\mapsto(-1,-1)$, that is, $$A=\left(\begin{array}{c} -2 & -1 \\ 2 & -1 \end{array}\right)$$ and we're done.