Aptitude Discussion

Q. |
A small confectioner bought a certain number of pastries flavoured pineapple, mango and black-forest from the bakery, giving for each pastry as many rupees as there were pastry of that kind; altogether he bought 23 pastries and spent Rs 211; find the number of each kind of pastry that he bought, if mango pastry are cheaper than pineapple pastry and dearer than black-forest pastry. |

✖ A. |
{10, 9, 4} |

✔ B. |
{11, 9, 3} |

✖ C. |
{10, 8, 5} |

✖ D. |
{11, 8, 4} |

**Solution:**

Option(**B**) is correct

Let the number of pineapple, mango and black-forest pastries be $p, m$ and $b$ respectively.

Given, $p+m+b=23$ -------- (i)

$p^2+m^2+b^2=211$ -------- (ii)

From equations (i) and (ii), we get:

$p =11, m =9$ and $m =3$