The scale factor is the ratio between equivalent sides and is the same for any pairs of sides, so:
For exercise 1:
The scale factor is 1/2 = 0.5 and x = 9/2 = 4.5.
For exercise 2:
The scale factor is 1.5 and x = 12
1.6m questions
2.0m answers