```json
{
  "sym_variables": [
    ("x0", "lightbulbs"),
    ("x1", "paper towel rolls"),
    ("x2", "candles"),
    ("x3", "toilet paper rolls"),
    ("x4", "rubber gloves")
  ],
  "objective_function": "5*x0 + 7*x1 + 3*x2 + 6*x3 + 8*x4",
  "constraints": [
    "3*x0 + 14*x1 + 25*x2 + 14*x3 + 12*x4 <= 244",
    "3*x0 + 14*x3 >= 20",
    "14*x1 + 25*x2 >= 38",
    "3*x0 + 25*x2 >= 33",
    "3*x0 + 14*x1 >= 42",
    "14*x3 + 12*x4 >= 41",
    "14*x1 + 12*x4 >= 39",
    "3*x0 + 12*x4 >= 30",
    "3*x0 + 14*x1 + 25*x2 + 14*x3 + 12*x4 >= 30",
    "14*x1 + 12*x4 <= 50",
    "3*x0 + 14*x1 <= 229",
    "25*x2 + 12*x4 <= 58",
    "14*x3 + 12*x4 <= 244",
    "14*x1 + 14*x3 <= 114",
    "3*x0 + 25*x2 + 12*x4 <= 244",
    "14*x1 + 25*x2 + 14*x3 <= 109",
    "3*x0 + 14*x3 + 12*x4 <= 196"
  ]
}
```

```python
import gurobipy as gp

try:
    # Create a new model
    m = gp.Model("optimization_problem")

    # Create variables
    lightbulbs = m.addVar(vtype=gp.GRB.INTEGER, name="lightbulbs")
    paper_towel_rolls = m.addVar(vtype=gp.GRB.INTEGER, name="paper_towel_rolls")
    candles = m.addVar(vtype=gp.GRB.INTEGER, name="candles")
    toilet_paper_rolls = m.addVar(vtype=gp.GRB.INTEGER, name="toilet_paper_rolls")
    rubber_gloves = m.addVar(vtype=gp.GRB.INTEGER, name="rubber_gloves")

    # Set objective function
    m.setObjective(5*lightbulbs + 7*paper_towel_rolls + 3*candles + 6*toilet_paper_rolls + 8*rubber_gloves, gp.GRB.MINIMIZE)

    # Add constraints
    m.addConstr(3*lightbulbs + 14*paper_towel_rolls + 25*candles + 14*toilet_paper_rolls + 12*rubber_gloves <= 244, "dollar_value")
    m.addConstr(3*lightbulbs + 14*toilet_paper_rolls >= 20, "c1")
    m.addConstr(14*paper_towel_rolls + 25*candles >= 38, "c2")
    m.addConstr(3*lightbulbs + 25*candles >= 33, "c3")
    m.addConstr(3*lightbulbs + 14*paper_towel_rolls >= 42, "c4")
    m.addConstr(14*toilet_paper_rolls + 12*rubber_gloves >= 41, "c5")
    m.addConstr(14*paper_towel_rolls + 12*rubber_gloves >= 39, "c6")
    m.addConstr(3*lightbulbs + 12*rubber_gloves >= 30, "c7")
    m.addConstr(3*lightbulbs + 14*paper_towel_rolls + 25*candles + 14*toilet_paper_rolls + 12*rubber_gloves >= 30, "c8")
    m.addConstr(14*paper_towel_rolls + 12*rubber_gloves <= 50, "c9")
    m.addConstr(3*lightbulbs + 14*paper_towel_rolls <= 229, "c10")
    m.addConstr(25*candles + 12*rubber_gloves <= 58, "c11")
    m.addConstr(14*toilet_paper_rolls + 12*rubber_gloves <= 244, "c12")
    m.addConstr(14*paper_towel_rolls + 14*toilet_paper_rolls <= 114, "c13")
    m.addConstr(3*lightbulbs + 25*candles + 12*rubber_gloves <= 244, "c14")
    m.addConstr(14*paper_towel_rolls + 25*candles + 14*toilet_paper_rolls <= 109, "c15")
    m.addConstr(3*lightbulbs + 14*toilet_paper_rolls + 12*rubber_gloves <= 196, "c16")


    # Optimize model
    m.optimize()

    if m.status == gp.GRB.OPTIMAL:
        for v in m.getVars():
            print('%s %g' % (v.varName, v.x))
        print('Obj: %g' % m.objVal)
    elif m.status == gp.GRB.INFEASIBLE:
        print('The problem is infeasible.')


except gp.GurobiError as e:
    print('Error code ' + str(e.errno) + ': ' + str(e))

except AttributeError:
    print('Encountered an attribute error')
```