A music shop charges a deposit of $20, plus a monthly rate of $30 to rent an instrument. For how many months did Avi rent an instrument if he spent a total of $80?