Final answer:
Miss Jenny bought 12 cupcakes and 8 pies for her Maths class party. The total cost for the cupcakes was RM18 and RM40 for the pies.
Step-by-step explanation:
The question involves a mathematical problem dealing with the purchase of cupcakes and pies given certain constraints. Miss Jenny bought 20 items in total consisting of cupcakes priced at RM1.50 each and pies at RM5 each, spending RM108 in total. Using a system of linear equations, we can solve for the number of each item she bought. Let's define x to be the number of cupcakes and y to be the number of pies. We then have the following equations:
x + y = 20 (Since the total number of items bought is 20)
1.5x + 5y = 108 (Since the total cost of the items is RM108)
By solving this system, we find that x equals 12 and y equals 8. Therefore, Miss Jenny bought 12 cupcakes and 8 pies.
The total cost of cupcakes is calculated as 12 cupcakes * RM1.50 = RM18.
The total cost of pies is calculated as 8 pies * RM5 = RM40.
In summary, Miss Jenny bought 12 cupcakes and 8 pies, spent RM18 on cupcakes, and RM40 on pies.