A camp program charges a one-time registration fee of $50 and a daily rate. If a camper was charged $338 for 12 days, which equation can be used to find the total cost of a camper that attends for x number of days?
1. y=50x+50
2. y=24x+288
3. y=50x+24
4. y=24x+50