When m is proportional to n, this can be written as:
m=k×n
where k is a constant.
Given that m=5 when n=4:
5=k×4
k=45
k=1.25
Using k=1.25 to find m when n=18:
m=k×n
m=1.25×18
m=22.5
Alternatively, since the ratio remains constant in proportional relationships:
n1m1=n2m2
45=18m
m=45×18
m=490
m=22.5
Therefore, when n=18, the value of m=22.5.