Using a system of equations, it is found that one cupcake costs $2.50 and one brownie costs $4.25.
A system of equations is when two or more variables are related, and equations are built to find the values of each variable.
In this problem, the variables are:
Vishal bought 3 packages of cupcakes and 2 packages of brownies for $19, hence:
3x + 2y = 19
Christina bought 2 packages of cupcakes and 4 packages of brownies for $24, hence:
2x + 4y = 24
Simplifying by 2
x + 2y = 12
x = 12 - 2y
Replacing on the first equation:
3x + 2y = 19
3(12 - 2y) + 2y = 19
4y = 17
y = 4.25
x = 12 - 2y = 12 - 2(4.25) = 2.50
One cupcake costs $2.50 and one brownie costs $4.25.
More can be learned about a system of equations at https://brainly.com/question/24342899