Faye had w packs of pencils each one having x pencils. She was placing her pencils into rows with y pencils in each row. How many pencils does she have?
Fay has 31 packs of pencils, each with 6 pencils. 

She is placing her pencils into rows with 19 pencils in each row. 

So she has 31 * 6 = 186 pencils in total.