Answer:
Number of boys = 6
Price of basketball =

Step-by-step explanation:
Given: If each boy were to contribute $8, then they would be $2 short. If they were to contribute $9 each, they would have an extra $4.
To find: Number of boys and the price of the basketball
Solution:
Let x denotes number of boys and y denotes the price of the basketball
If each boy were to contribute $8, then they would be $2 short, equation obtained is


If they were to contribute $9 each, they would have an extra $4, equation obtained is


Subtract equation (ii) from (i)

Put
in equation (i)

So,
Number of boys = 6
Price of basketball =
