A weekly gym membership can be purchased for different numbers of classes, as shown in the table below.
Number of classes | 1 | 2 | 3 | 4 |
Cost in dollars | 42 | 72 | 102 | 132 |
What is the rule connecting the number of classes purchased and the cost in dollars? (2 marks)