Input/output

6 18
7 21
8 24
9 27
question...
if jack buys 12 toys, what is the cost?

To find the cost of 12 toys, we need to determine the cost per toy. In this case, we have a pattern in the input and output pairs provided. Let's analyze the pattern:

Input | Output
6 | 18
7 | 21
8 | 24
9 | 27

From the given data, we can observe that the output is obtained by multiplying the input by a constant factor. Each output is three times the input. Therefore, to find the cost of 12 toys, we need to multiply 12 by the same constant factor.

Given that the output is three times the input, the constant factor is 3. Hence, to calculate the cost of 12 toys, we multiply 12 by 3:

Cost = 12 * 3 = 36

Therefore, the cost of 12 toys is 36.