Let the number be n
The difference between n and 3 is given by:
[tex]n-3[/tex]Therefore, the difference between n and 3 multiplied by g is given by:
[tex](n-3)g[/tex]Since the product is 45, it follows that:
[tex](n-3)g=45[/tex]Therefore, the required equation is given by:
(n - 3)g = 45