Doubt in the concept

Sir/maam, in the previous video it was taught that (a-b)%m=(a%m-b%m+m)%m,
then how in this video (a-b)%n=0 has been taken as a%n=b%n?
a%n should be equal to b%n+n

Read this, this is all you need to know about modulo properties

It’s nothing but distributive properties of modulo.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.