A bakery gave out coupons to celebrate its grand opening. each coupon was worth either 1, 3, or 5. Twice as many 1 coupons were given out as 3 coupons, and 3 times as many3 coupons were given out as 5 coupons. The total value of all the coupons given out was 360. How many 3 coupons were given out?