William is throwing a party for his math class and decides to visit Jones' Pi Bakery. There, cupcakes cost $2 and pies cost $7.5. William bought a total of 20 items. In all, he spent $73. How many cupcakes and pies did he purchase?
A
6,14
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
8,12
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
12,8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
14,6
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is D14,6 Let x= Number of cupcakes y= Number of pies Step 1: Total items =20
So, x+y=20…(1)
Step 2: Total money spent =$73
So, 2x+7.50y=73…(2) Step 3:Multiply equation (1) by 2 2x+2y=40…(3)
Step 4: Substract eqution (3) from equation (2)
We get, 5.5y=33 y=335.5 =33×105.5×10 =33055 ⇒y=6
Plug y=6 into equation (1) to get x x+6=20 x=20−6 ⇒x=14