Eliot and Fran went to the carnival together. Eliot paid for all the rides and games, and Fran paid for all the food. Together they spent $42. Fran spent $12 less than Eliot. How much did each spend?