Hello!
First of all, let's write some important information:
• There are 35 coins in total;
,
• The total amount is $6.80.
Let's write d for dimes and q for quarters.
Writing the exercise as a linear system, we will have:

Let's isolate the variable d in the first equation:

Now let's replace it in the second equation:

As we know the number of quarters, we just have to replace it:

Answer:
In the pig bank were 13 dimes coins and 22 quarter coins.