Pete has $165 in five- and ten-dollar bills. If he has twenty bills total, how many of each does he have? (Write an equation and solve)