Answer:
5
Explanation:
What we have to know is that when two triangles are similar their sides will always be proportional. So we will create a proportion that goes like this...
but since it doesn't tell us the exact value of triangle 1. We will have to add 3 and 12 to get 15 which is the base of the first triangle. Now we're ready to write the proportion.

Now we cross multiply and solve the equation...

So the value of x is 5.