The countries that involved were: D. rome and Carthage
The main role that the Egypt and the Greece played during the Punic wars were only for financial backing.
Since back then both the Egypt and the Greece competed with Romans for world's influence, these nations give financial aids for the Carthage in the war.