You can simply do this equation by finding the biggest number to the smallest one if the bigger number is question,so by your problem asked for example 976 521 is the answer while for the smallest,125 679 is the answer,for shortcut in finding the smallest,just copy the inverse answer of your biggest number.