The school arranged for a field trip to the local museum. Due to social distancing restraints, only 30 people, including chaperones, are allowed to participate. Each student costs the district $2 and each chaperone is $5. If the district spent $141 on the trip, how many students and how many chaperones attended?