A factory produces widgets that are packed in boxes. Each box contains exactly 20 widgets. After a quality check, it was found that some widgets from each box were defective. If the total number of defective widgets from all boxes is 58 and the total number of boxes is 13, what is the remainder when the total number of widgets produced is divided by 17? Let's think step by step and output the final answer within \boxed{}.
user