They receive x and need 3 more, so is the number they needed before the order. They originally needed 25 and had 7 already, so is also the number they needed before the order. Since and represent the same number, they are equal to each other.