Greg needs to buy gas and oil for his car. Gas costs $3.45 a gallon, and oil costs $2.41 a quart. He has $50 to spend. Write an inequality to represent the situation, where g is the number of gallons of gas he buys and q is the number of quarts of oil.