Given the information on the problem, we can write the 5 pieces of candy for 75 cents like this:

then, for 8 pieces, we would have the following proportion:

then, we can equate both proportions to get the following:

thus, solving for x, we get:

therefore, 8 pieces cost $1.20