I'm afraid this is the sort of problem that arises with two adolescent dogs of similar age. One on their own you may be able to break but at least half the problem is they are feeding off each other's reactions. A shock collar isn't going to help.
I would start with the NILIF program for both of them. The idea being it will teach a little self control. That also means access to each other is treated as a reward, so to be together they have to do something - maybe a sit or drop and "look at me". This will have them focusing on you first in a calm manner before they feed on each other.
The other thing you can do is leave a short leash on them inside. When they play up lead one of them away, without speaking, so you can separate them (or if you are both around lead both of them apart). This should teach them that everytime they play up they get separated. Leave them in time out for a short time and then when you bring them together get a command and "look at me" out of them to ensure they are calm. I would only be leaving them together if they are calm. If it means separating them a lot then that is what you need to do. It won't be forever, you just need to break this pattern of behaviour when they are together. As they are adolescents it may take a little longer, but you are setting them up for better behaviour in the future.