Sharon has a carton of quilting notions. She has a total of 52 notions. She has 16 patterns. She has three times as many thimbles as templates. How many of each item does she have?