A members-only speaker series allows people to join for $26 and then pay $2 for every event attended. What is the maximum number of events someone can attend for a total cost of $48? Write and solve an equation to find the answer

26 + 2x = 48