Two hundred fifteen people have been invited to a reception. The men get a gift of candy that cost $ 6.95 each, and the women get a gift of flowers that cost $ 8.95 each. If the total cost for gifts was $ 1724.25, how many men and how many women were invited?