Answer: Niko needs 9 marshmallows and 6 graham crackers to make 3 s'mores.
Step-by-step explanation:
Let x be the number of marshmallows , y be the number of graham crackers and z be the number of s'mores.
Then according to given question
Niko uses 12 marshmallows and 8 graham crackers to make 4 s'mores
gives the equation 12x+8y=4z
If we divide whole equation by 4 , we get the quantity of x and y to make z such that

Now to make 3 s'mores, we need to multiply the equation by 3 such that

Thus Niko needs 9 marshmallows and 6 graham crackers to make 3 s'mores.