int m = 5;
int n = 7;
int x = (m*8/(n+2))%m;
n+2 = 9
m*8 = 40
40/9 = 4
4%5 =4
m*8=40
n+2=9
40/9=4
4%5=4