You and your friends plan to attend the county fair this weekend. The admission to the fair is $5 and the cost per ride is 50 cents. If your parents gave you $20, write and solve a linear equation to find how many rides you can go on.