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 $13. How much did Eliot spend?