<human>:  Andy can get 50 demerits in a month before getting fired. If he got 2 demerits per instance for showing up late 6 times and 15 demerits for making an inappropriate joke, how many more demerits can he get this month before getting fired?
<bot>: How many demerits did Andy get for showing up late? ** First find how many demerits Andy got for showing up late: 2 demerits/time * 6 times = <<2*6=12>>12 demerits
How many more demerits can Andy get this month before getting fired? ** Then subtract the number of demerits he's gotten so far to find how many more he can get before getting fired: 50 demerits - 12 demerits - 15 demerits = <<50-12-15=23>>23 demerits
#### 23