A four-sided field needs to be fenced. Two sides are each g feet long. The length of the third side is 3 feet less than 5 times the fourth side. If the length of the fourth side is represented by m, write an algebraic expression that represents the length of the fencing needed.