The bookstore sold 18 devotional books for a total of 271.00. The bookstore sells a family devotional book for 12.00 and a youth devotional book for 17.00. How many family devotional books and youth devotional books were sold

Let x be the number of family devotional books sold.

So, the number of youth devotional books sold is 18 - x.
Therefore, the amount spent on family devotional books is 12x and the amount spent on youth devotional books is 17(18 - x).
Hence, 12x + 17(18 - x) = 271.
This simplifies to 12x + 306 - 17x = 271.
Combining like terms, we get -5x + 306 = 271.
Subtracting 306 from both sides, we get -5x = -35.
Dividing both sides by -5, we get x = 7.
Therefore, the number of family devotional books sold is 7 and the number of youth devotional books sold is 18 - 7 = <<18-7=11>>11. Answer: \boxed{7}.