How would I solve this? A step-by-step walkthrough would be very helpful as well

"Tickets for a school play are $3 for students and $5 for adults. If there are 500 seats avaliable and all were sold the total receipts are $2074. Write two equations that would help determine the number of each type of ticket sold."