After the second day, the pirate continues his adventure and stumbles upon a third treasure chest containing 29 additional rubies. Unfortunately, he drops and loses 36 rubies while escaping a group of rival pirates. How many rubies does he have in total now?