Seventeen members of Troy's family are going to an amusement park during the week of their family reunion. Adult tickets cost $39.50 each and child tickets cost $31 each. If the total cost for admission to the part is $578, how many adults went to the park?