Nashib D. answered 05/15/20
I am in love with maths, physics, and computer
The system of equations are: (Let x be the number of cookies she bought and y be the number of cupcakes she bought.)
x + 3y = 15 [ 1.x = the rate of cookie times the number of cookie; 3.y = the rate of cupcakes time the number of cupcakes; The sum of twos costs is $15.]
x + y = 7 [she bought 7 items total so, the sum of the number of two items is 7]
By solving these two equations, she bought 3 cookies and 4 cupcakes.