Basically because the quadrilaterals are similar, this means the sides are proportional to one another. This allows us to set up the equation at the very top. In step 3, I cross multiplied. Then later on, I divided both sides by 6.
Keep in mind that the similar figures are because of the parallel lines. If the lines weren't parallel, then the figures may not be similar.