A group of friends share cost of their party. If each pays $42, there is surplus of $19.
If each pays $40, the total is short of $8. How much does the party cost?