The first picture is correct, the triangle was dilated by a factor of 1/3 and then shifted 2 units down.
The second picture is also correct, because the dots are higher as they move to the right, it is a positive association and they follow a linear line.