john is going to a fair. Admission into the fair is $2 and each ride is $1