A store sells packages of comic books with a poster. A poster and 3 comics cost ​$9.99. A poster and 12 comics cost ​$18.99. Write a linear function rule that models the cost y of a package containing any number x of comic books.