how many pillows does she plan to decorate?

gretchen has x square inches of fabric to decorate her pillows. if she uses 6 square inches on each pillow, she will have 10 square inches of fabric remaining. but if she uses 8 square inches on each pillow, she will need an additional 18 square inches to decorate all of her pillows. how many pillows does she plan to decorate?
 
a) 12
b) 14
c) 16
d) 18

6n + 10 = x
 
8n  - 18 = x
 
subtracting equation 2 minus equation 1:
 
8n - 18 - (6n + 10) = x - x 
 
8n - 18 - 6n - 10 = 0
 
2n - 28 = 0
 
2n = 28
 
n = 14
 
she has 14 pillows.
 
6 x 14 + 10 = 84 + 1- = 94 square inches 
 
8 x 14 - 18 = 112 - 18  = 94 square inches
 
14 pillows
94 square inches of fabric