finishes triangle problem and unbreaks math