Some little league players and coaches took a field trip to see a game. Kids tickets cost 5 and adults cost8. The total cost to get into the game was 274. After the game, they went to a buffet dinner. Kids' meals cost10 and adult meals cost 15. The restaurant's total cost was540. How many kids and how many adults went on the trip?