The 340 Sundancer was offered with a variety of drives over the years it was produced.
You do not list your drive nor year.
Even if we knew your drive, say Bravo III, the answer would vary by year.
We need to know the year, drive and use (fresh or salt). A photo would be best.
Let’s say you have a 2003 340 with Bravo III drives and you boat in fresh water.
You would need two (one for each drive) of these kits
http://www.boatzincs.com/bravo2-3-mag-kit.html
You may or may not need anodes for the trim tabs. They tend to last longer.
I would also recommend you add an additional prop anode, again two, one for each drive.
http://www.boatzincs.com/MERProp-Nut-D-mag.html
Now let’s say you have a 2004 340 Sundancer with Bravo III drives. The kits area different, the now standard prop anode is different.
Its all different again if you have inboards.
So, in summary, we need more information to help you.