The cost of a gym membership is a onetime fee of $140, plus a monthly fee of $40. Brendan wrote a $500
check to pay his gym membership for a certain number of months, including the onetime fee. How many
months of membership did he pay for?