According to division algorithm: Dividend = Divisor x Quotient + Remainder
Dividend = 58 x 40 + 31 = 2341.
So 2341 is the required number.
2351
(7 x 4) + 3 = 31
31.3571
6.9677
31
2351
31.0333
222222222222
(7 x 4) + 3 = 31
31.3571
31.2
744 divided by 31 is 24 with remainder 0.
31
6.2
3.875
6.9677
31