Let, price of fudge and gum is x and y respectively.
Converting given statements into mathematical equation.
We get :
5x + 3y = 5.70 ....1)
2x + 10y = 3.60 ....2)
Solving equation 1 and 2, we get :
x = $1.05 .
y = $0.15 .
Price of buying 20 pieces of fudge and 20 pieces of bubble gum is :
P = 20( 1.05 ) + 20( 0.15 )
P = $24
Hence, this is the required solution.