Write a number sentence.

There are 17 goats in the barn. 8 goats go outside. How many goats are still in the barn?

Subtract 8 from 17.

17-8 = 9
There are 9 goats still in the barn.

To write a number sentence, we need to represent the given information algebraically. Let’s use variables to help us. Let's use 'g' to represent the total number of goats in the barn and 'x' to represent the number of goats that go outside.

According to the given information:
Total number of goats in the barn = 17 (g = 17)
Number of goats that go outside = 8 (x = 8)

To find the number of goats still in the barn, we can subtract the number of goats that go outside from the total number of goats in the barn. This can be represented by the expression 'g - x'.

Substituting the given values, the number sentence can be written as:
17 - 8 = ?

Now, we can solve the number sentence to find the number of goats still in the barn.