The cost of 1 round of golf is $18 and therefore the total cost for all of the tickets is $18 × the amount of golf plays, mathematically $18 × g, hence 18g
The membership cost of 1 month is $250 and therefore the total cost for all of the tickets is $250 × the amount of months, mathematically $250 × m, hence 250m.
Now we can set up the equation. The only thing we need to do is adding up the individual functions.