a toy gun cost 10 pesos more than a doll. the total cost of 3 such toy guns and 4 such dolls was 163 pesos. find the average cost of a toy gun.

g = d + 10 ... d = g - 10

3 g + 4 d = 163

substituting ... 3 g + 4(g - 10) = 163 ... 3 g + 4 g - 40 = 163

To find the average cost of a toy gun, we first need to determine the individual cost of a toy gun and a doll.

Let's assume the cost of a doll is x pesos.

According to the given information, a toy gun costs 10 pesos more than a doll. Therefore, the cost of a toy gun would be (x + 10) pesos.

The total cost of 3 toy guns and 4 dolls is given as 163 pesos. We can set up the equation based on this information:

3(x + 10) + 4x = 163

Simplifying the equation:

3x + 30 + 4x = 163
7x + 30 = 163
7x = 133
x = 19

The cost of a doll is 19 pesos, and the cost of a toy gun is (x + 10) = 19 + 10 = 29 pesos.

Now, to find the average cost of a toy gun, we calculate the sum of the cost of 3 toy guns:

3 * 29 = 87

Finally, we divide the sum by the number of toy guns:

87 / 3 = 29

Therefore, the average cost of a toy gun is 29 pesos.