Let W be the wide and L the length of the classroom, then we can write

Since W=25 feets, we get

If we move 50 to the right hand side as -50, we obtain

since 130-50=80, we get

Now, if we move the coefficient 2 to the right hand side, we obtain

that is, the lenght of the classroom is equal to 40 feets.