The value of R required to make the galvanometer measure voltage up to 40V in…